New answers tagged taquito
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:
"...
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. ...
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....
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 ...
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=...
Top 50 recent answers are included
Related Tags
taquito × 113smart-contracts × 26
smartpy × 11
operation × 10
beacon × 10
storage × 8
dapps × 8
wallets × 7
transfer × 7
node × 5
michelson × 5
tezos-signer × 5
javascript × 5
bigmap × 5
tezos-client × 4
transactions × 4
rpc × 3
api × 3
tokens × 3
inject × 3
counters × 3
temple × 3
error × 2
contract × 2
ligo × 2