Skip to main content

Questions tagged [taquito]

Questions related to using the [Taquito](https://tezostaquito.io) Typescript/Javascript library to interact with the Tezos blockchain

Filter by
Sorted by
Tagged with
5 votes
3 answers
667 views

How to decode raw transaction?

I am using @taquito to build and sign a transaction. But before I send it I want to decode it to check my destination address, amount etc like you would normally do for other blockchains. Not sure ...
coder123's user avatar
  • 157
5 votes
2 answers
397 views

Operation cost for invoking smart contract

I would like to find out if the smart contract's code size/storage or an operation's parameters helps to derive to the cost. Is there a formula to calculate the cost of the operation to be invoking a ...
Vinnyson's user avatar
  • 515
5 votes
1 answer
53 views

bigmap.get(key, "") with default param in case of no entry for key in the map with Taquito

Can we do something similar to myMap.get(key, defaultValue = None) of smartPy with Taquito? An instruction like: const myContract = await Tezos.contract.at(contractAddress); const contractStorage = ...
Daly's user avatar
  • 442
4 votes
1 answer
514 views

How do I get the storage value of a bigmap using pair datatype as key with taquito library?

I am using the taquito library to interact with a smart contract that I have uploaded to carthagenet. However, I am facing an issue in retrieving the value of a bigmap property in my smart contract ...
Zack's user avatar
  • 55
4 votes
1 answer
301 views

How to estimate Baker and Storage fee with @taquito for a contract?

I have a simple smart-contract that holds user funds and that can be withdrawn by sending a signed message. However, I would like to offer the possibility for users to anticipate the fees they have ...
Charles Beyer's user avatar
3 votes
1 answer
202 views

How to convert hex string/bytes to ASCII characters

Using Taquito I can load the storage from a smart contract. This storage contains a map called token_info. If I call token_info.get('symbol'), I get a hex string of "4d494e". How do I ...
Thorkil Værge's user avatar
3 votes
1 answer
212 views

Why aren't the offchain views appearing?

I'm extending the smartpy FA2 template # FA2 = sp.import_script_from_url("https://smartpy.io/dev/templates/FA2.py") class TezosLandNft(FA2.FA2): ... which has the following offchain views ...
JJJ's user avatar
  • 557
3 votes
2 answers
148 views

Understanding how @Taquito/Beacon works

I've entered the wonderful world of Tezos from an EVM based background, with some familiarity with Web3/EthersJS. I'm currently trying to understand how dApps communicate with wallets. From my ...
Hevar's user avatar
  • 31
3 votes
1 answer
85 views

Create input for injectOperation (forged op + Beacon Wallet signature)

I'm trying to manually forge a transaction, sign it with Beacon Wallet and inject it. I've forged and sign it. preapplyOperations is OK. Now I'm trying to build the input data for injectOperation ...
avl's user avatar
  • 69
3 votes
1 answer
81 views

Is it possible to retrieve only a single variable from contract storage?

As far as I can tell using the taquito npm package, in order to get any storage from a contract, you have to get all of a contract's storage. This seems like it can become highly inefficient if you ...
Matt's user avatar
  • 31
3 votes
1 answer
158 views

Generating new Tz1 account from Taquito

In ConseilJs, there is a KeyStoreUtils which helps generate mnemonic and restore it to an account. Are there any ways in taquito library to perform similar action? Or do we need to install and import ...
Vinnyson's user avatar
  • 515
2 votes
2 answers
41 views

InMemorySigner from node crypto key

Is it possible to generate keys with node's crypto library and import them in the InMemorySigner? I want to generate keys that I can use to sign transactions for a proof of concept.
Ulrik Strid's user avatar
2 votes
1 answer
87 views

Get number of entries in bigmap

I am currently writing tests for a contract and for one of those tests, I would like to get the number of entries in a bigmap field of the contract's storage. I am using JavaScript with Taquito and ...
Thorkil Værge's user avatar
2 votes
2 answers
297 views

Signing transaction with external hardware device and broadcasting on Babylonnet gives invalid signature

I am trying to broadcast a Tezos transaction on the Babylon testnet. I'm using an external military-grade hardware security module (HSM) located on a remote server. Its purpose is to never expose the ...
CoderApprentice's user avatar
2 votes
1 answer
88 views

How do you decode an event?

I am fetching an event using Taquito's PollingSubscribeProvider and the result is: {"opHash":"onqeD75WQfWb2BHiqQBh4Z1yfwY131rHVRX9mNUC8GPkW3iDbTS","blockHash":"...
hlvntn's user avatar
  • 111
2 votes
2 answers
143 views

Passing parameters in truffle tests

I have this parameter for a function: type modify_list is | Add of list(address) | Remove of list(address) type modify_list_michelson is michelson_or_right_comb(modify_list) When I try to supply ...
Daniel Gretzke's user avatar
2 votes
1 answer
69 views

How to swap object with taquito

I'm trying to swap NFT using such function: async function swap(fa2: string, contractAddress: string, objkt_id: number, royalties: number, objkt_amount: number, xtz_per_objkt: number, owner_address: ...
Adam Levy's user avatar
2 votes
2 answers
265 views

How to drain account with Taquito?

I have 9.9 tezos on my address tz2B35M8eHC6FhAVsQrtp8EBPri4H73w7W7C. I want to send all of it to another address tz1i4ezL2FZ1kZ8oqEY8n6wCr2eGRJPC4xin which has never been used and is thus empty. For ...
CoderApprentice's user avatar
2 votes
1 answer
57 views

Interact with Tezos in xamarin

im searching for a way to communicate to the chain in my xamarin app. The problem is that the native libs like this https://github.com/mscappini/Tz.Net are not really well looked after so im searching ...
Platinium's user avatar
2 votes
1 answer
58 views

How to get Harbinger price feed from Taquito

I get an http error 'Key not found' The contract is a harbinger (coinbase carthage) storage contract. What is the correct 'get' param ? Tezos.contract.at('KT1P7D7jt3PfjMpsEKPyao1kHQR93t7XR5zh') .then(...
Alvin's user avatar
  • 31
2 votes
1 answer
45 views

Unpacking return unexpected result

I'm having some issue with the contract read, i have data in format of sp.TMap(string,bytes), im using sp.pack() to get the bytes representation of a sp.TNat in a concrete example for a nat 200 y get ...
Marcelo David Moisés's user avatar
2 votes
1 answer
160 views

How to get encrypted Tezos private key from decrypted private key and password?

In my app on back-end the next code is used to get signer: const { InMemorySigner } = require('@taquito/signer'); const signer = InMemorySigner.fromSecretKey( signingKey, TEZOS_SERVICE_PASSPHRASE ...
Ihor Bohdanov's user avatar
2 votes
2 answers
336 views

How do I get method arguments using Taquito?

When I have a object of type ContractAbstraction<ContractProvider>, I can get a key/value map of all the endpoints in the deployed contract like this: const contract: ContractAbstraction<...
Thorkil Værge's user avatar
2 votes
1 answer
58 views

How to calculate total fees spent on a Tezos transaction using Taquito?

I am currently working on a project involving Tezos smart contracts, and I'm using Taquito to interact with the Tezos blockchain. I'm trying to calculate the total fees spent on a confirmed ...
ztepler's user avatar
  • 158
2 votes
2 answers
121 views

Cannot pass MichelsonMap as smart contract method parameter

I have the following smartPy code deployed to a contract: @sp.entry_point def add(self, id, data_raw): sp.set_type(id, sp.TString) sp.set_type(data_raw, sp.TMap(sp.TString, sp.TString)) ...
user8188's user avatar
2 votes
1 answer
174 views

How to estimate transaction fee without initializing a signer in taquito?

I am trying to estimate the fees for a transaction call using the Tezos.estimate.transfer() function but it is asking to initialize a signer. Is it possible to make an estimate call without a signer ...
Soumya Ghosh Dastidar's user avatar
2 votes
1 answer
234 views

Specifying a counter for parallel transactions

I want to send transactions asynchronously (in parallel) with Taquito. For payments, this works well with a counter (see also https://github.com/ecadlabs/taquito/compare/allow-to-explicitly-set-...
Quantenspringer's user avatar
1 vote
2 answers
144 views

How to know an operation has definitely been included?

For example, calling an entrypoint to change a smart contract's storage. When can I be maximally certain the change is now part of the blockchain? Will it suffice if I grab the contract's storage with ...
Bijou Trouvaille's user avatar
1 vote
2 answers
314 views

Listen for operations of a deployed contract

Coming from an ethereum web3 background, I'm accustomed to listening for a contract's events to figure out when things happen in my contract and react accordingly in the application. I'm looking for ...
jon's user avatar
  • 133
1 vote
2 answers
537 views

Taquito + BeaconWallet = Signer?

I've configured Taquito to use the BeaconWallet this way: const wallet = new BeaconWallet(options) await wallet.requestPermissions({ network: { type: 'edonet' } ...
styts's user avatar
  • 175
1 vote
2 answers
215 views

Taquito default entrypoint not found

I have deployed a smart contract on carthagenet. The contract only has a single entry point. Taquito is not able to find that single entry point. I tried both default and root methods and it doesn'...
Zack's user avatar
  • 55
1 vote
2 answers
97 views

Multisig Sapling - Taquito

Title is presenting the idea here: Using shielded pool: Trying to make a transactions: From alice -> to bob Approved by a third party (admin) NomadicLabs defined it in their docs however, not ...
AlexOuille's user avatar
1 vote
1 answer
178 views

Can I iterate over a big_map using Taquito?

I have made a web interface for Tezos token interaction and now I would like to show a balance overview of the loaded tokens, i.e. show a list of address, account tuples . This requires me to be able ...
Thorkil Værge's user avatar
1 vote
3 answers
68 views

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?

I have a contract address: KT1P8RdJ5MfHMK5phKJ5JsfNfask5v2b2NQS, and a wallet address: tz1MSint56iUqoogrKsvEMEykpbKv2Yhmzss. What can I do?
Solider's user avatar
  • 13
1 vote
1 answer
133 views

How do I transfer a NFT from a wallet to another using Taquito?

I want to transfer one collectible from one wallet to another using Taquito (I know how to do the operation manually using a wallet, but not in code). The documentation shows how to transfer an amount ...
Rafael Viana's user avatar
1 vote
1 answer
191 views

General solution for getting fungible token balance off-chain

Given the public hash of a fungible token contract, I want to get the amount of tokens owned by a wallet. I want to perform this operation off-chain so that it is free. FA1.2 (tzip7) has getBalance() ...
PEC's user avatar
  • 139
1 vote
2 answers
42 views

Get transaction details from operation hash with taquito

How fetch details about my transaction from operation hash. I am using taquito library. I searched and get that tzkt can be used but can tzkt taquito extension be used. If yes then how.
Aanchal Bhatti's user avatar
1 vote
1 answer
18 views

Taquito: Is it possible to create smart contract transactions and send them to a over the network without using the .send method?

I wonder if it's possible to create smart contract transactions and them send them to a over the network without using the .send method...? I need to group and sort and some things (from different ...
user avatar
1 vote
1 answer
22 views

how can I turn an address from bytes into the string representation

I’m using taquito to parse a lambda, and the addresses are in bytes (0x0158f34461ea883382831e9d9333c1b88749130e7c00), how can I turn it into the string representation (...
user avatar
1 vote
2 answers
76 views

I'm getting different public key hashes when creating new wallet with Taquito InMemorySigner x when creating with Kukai wallet. Why?

I'm writing a dApp where I need to create a "native" (not beacon) wallet so it can perform some automatic operations. Occurs that, with the same mnemonic words used to create a wallet in ...
Luiz Milfont's user avatar
1 vote
1 answer
26 views

Add text to Tezos contract storage results in HttpRequestFailed: Error: timeout of 30000ms exceeded

I'm trying to get this tutorial to work but adding a memo to the Tezos blockchain always results in a HttpRequestFailed: Error: timeout of 30000ms exceeded Full repo: https://github.com/MelvinManni/...
Tom's user avatar
  • 113
1 vote
2 answers
262 views

Simple connect wallet button with beacon and taquito in React - cannot find cipher-base

I just created a new React template from scratch with npx create-react-app my-app --template typescript. Then I added beacon and taquito package. And then I wanted as a test first to try to create a ...
user avatar
1 vote
1 answer
32 views

Ballot operation with Taquito and Beacon SDK

I'm trying to send a ballot operation with Taquito and Beacon SDK. Here's my code: const currentProposal: string = (await Tezos.rpc.getCurrentProposal())?.toString() || ""; const branch: ...
avl's user avatar
  • 69
1 vote
1 answer
90 views

AddressValidationError when calling an entrypoint with Taquito

I'm trying to call the Plenty Router with Taquito to swap from kUSD (Kolibri USD) to tzBTC via Plenty token. In this example, I'm sending 1 kUSD. I'm using arbitrary minimum output (I do not compute ...
Clement J.'s user avatar
1 vote
1 answer
66 views

How to simply store signed, hashed data on Tezos blockchain?

I'm new to Tezos. I'm wanting to store some signed, hashed data on the Tezos blockchain, most likely using Taquito/Batch API. Can anyone direct me to the correct method to simply send the data and get ...
IFC's user avatar
  • 13
1 vote
1 answer
158 views

Packing and signing a payload in Taquito

I'm trying to call a contract method that checks a signature against the chain ID, contract address, caller, and params. The contract lives at KT1XoT3RTkXCN2y25e635WeEmjN4xszQWtq6 on mainnet, and here ...
sudo's user avatar
  • 125
1 vote
2 answers
234 views

How to obtain the public key (not public hash - PKH) using taquito

In order to use the verifySignature method in Taquito, I need the public key of the wallet. I can only find the public key hash method - am I missing something obvious? Thanks! Below is how I obtain ...
Mamlambo Fossils's user avatar
1 vote
1 answer
92 views

Taquito: error when using "parameter" in withTransfer with Batch API

I am trying to transfer an amount to a contract while calling a contract endpoint using the Batch API provided by Taquito. I've tried passing a parameter object as shown in the Taquito documentation, ...
Iz4's user avatar
  • 21
1 vote
1 answer
90 views

How to fetch list of known addresses in Taquito?

Just like we can run tezos-client list known contracts to get a list of deployed contracts and any user accounts, is there a way to do the same using Taquito? So, in short, I've RPC address and wish ...
tichnas's user avatar
  • 51
1 vote
2 answers
218 views

How to fetch all the values in a big map using taquito?

Per the BigMapAbstraction Taquito API docs, there isn't a way to fetch all the values in that map. Is the suggested way to fetch all of values in the map by doing batch queries on it then? Or what's ...
JJJ's user avatar
  • 557