1
vote
I want to transfer the tokens from one contract to another address
This is happening because both contracts have different parameter schema for the transfer entrypoint.
Goto KT1LkNWZgVYh3zdaRkBb9aNgLEFCjVJwEKu2 TzKt, the arguments should be in the format:
"...
1
vote
I want to retrieve the balance of a smart contract that I own using my wallet address and the address of that smart contract, how can I do that?
You may access rpc package's getBalance function with tezosToolkit like below to get both balances.
(async ()=> {
try {
const tezos = new TezosToolkit(ghostnet)
let kt1 = await tezos.rpc....
1
vote
Accepted
I want to retrieve the balance of a smart contract that I own using my wallet address and the address of that smart contract, how can I do that?
You can get the token balance of your wallet using this TzKt API.
In your case, you will need to add two query parameters. So, the API becomes:
https://api.ghostnet.tzkt.io/v1/tokens/balances?account=...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
smart-contracts × 407smartpy × 132
michelson × 48
ligo × 34
tezos-client × 32
liquidity × 29
taquito × 26
nft × 24
contract × 22
storage × 19
error × 13
fa2 × 12
archetype × 12
deploy × 11
node × 9
baking × 9
testing × 9
bigmap × 9
blockchain × 9
fa1.2 × 9
dapps × 9
rpc × 8
transactions × 8
gas × 7
javascript × 7