New answers tagged

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: "...
Ojuswi Rastogi's user avatar
0 votes

I want to transfer the tokens from one contract to another address

If the only thing you change is the contract address, the second contract's transfer entrypoint has a different set of parameter names. The first one expects from_, while the second one expects from. ...
Alireza's user avatar
  • 126
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....
Hui-An Yang's user avatar
0 votes

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?

In your comment to another answer, you mention trying the getBalance entrypoint in Taquito. That getBalance entrypoint (as defined in the FA1.2 standard) sends the account's balance to another ...
Tim McMackin's user avatar
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=...
Ojuswi Rastogi's user avatar

Top 50 recent answers are included