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
507 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 ...
user avatar
  • 157
5 votes
2 answers
325 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 ...
user avatar
  • 495
5 votes
1 answer
51 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 = ...
user avatar
  • 444
4 votes
1 answer
430 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 ...
user avatar
  • 55
4 votes
1 answer
226 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 ...
user avatar
3 votes
1 answer
179 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 ...
user avatar
  • 557
3 votes
1 answer
67 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 ...
user avatar
  • 31
2 votes
1 answer
71 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 ...
user avatar
2 votes
2 answers
248 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 ...
user avatar
2 votes
2 answers
128 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 ...
user avatar
2 votes
1 answer
117 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 ...
user avatar
2 votes
1 answer
51 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 ...
user avatar
2 votes
1 answer
46 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(...
user avatar
  • 31
2 votes
2 answers
247 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<...
user avatar
2 votes
2 answers
58 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)) ...
user avatar
2 votes
1 answer
196 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-...
user avatar
1 vote
2 answers
213 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 ...
user avatar
  • 133
1 vote
2 answers
348 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' } ...
user avatar
  • 175
1 vote
2 answers
179 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'...
user avatar
  • 55
1 vote
1 answer
145 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 ...
user avatar
1 vote
1 answer
21 views

How do you submit a pair when calling an entrypoint on a contract with Taquito?

I am trying to submit a Pair of Bytes in a contract call with Taquito but am receiving an error. The contract interaction documentation does not go into exactly how to submit a Pair, but it does go ...
user avatar
  • 377
1 vote
1 answer
44 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() ...
user avatar
  • 139
1 vote
2 answers
168 views

How to prevent Taquito Tezos.estimate.transfer() from throwing a balance_too_low and cannot_pay_storage_fee error?

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 ...
user avatar
1 vote
1 answer
31 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 ...
user avatar
  • 13
1 vote
1 answer
64 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, ...
user avatar
  • 21
1 vote
1 answer
62 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 ...
user avatar
  • 51
1 vote
2 answers
135 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 ...
user avatar
  • 557
1 vote
1 answer
276 views

Calling contract entrypoint having complex parameters

I am trying to call FA-2.0 transfer entry point using tezos taquito, I have also gone through https://tezostaquito.io/docs/complex_parameters/. however I get the error below when I try to call ...
user avatar
1 vote
1 answer
44 views

how to set type 'Sets' to orginate()

in smartpy, self.init(used = sp.set(t = sp.TSignature)) in taquito await Tezos.wallet.originate({ code: contractJson, storage: { used: [], } }) TezosOperationError { ...
user avatar
  • 51
1 vote
2 answers
477 views

How to retrieve the transaction details using Operation Hash in Taquito

I am trying to retrieve the transaction details like status and data using the operation hash in taquito. What I want to achieve is basically take the op hash as user input and retrieve the details ...
user avatar
1 vote
1 answer
84 views

Invalid Parameter Error for getBalance() in FA 1.2 Token

We are working for FA 1.2 Tokens with the Ref Link: https://assets.tqtezos.com/docs/token-contracts/fa12/2-fa12-ligo/ and got stuck at this point. Code Used: const op = await contract.methods ...
user avatar
1 vote
1 answer
135 views

Trouble with calling a function with parameters with Taquito

I'm trying to use taquito to call a method in my contract. Note my contract was programmed in SmartPy (if that makes any difference). I am able to call contract.storage() without any problem. When ...
user avatar
1 vote
1 answer
115 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 ...
user avatar
1 vote
1 answer
100 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 ...
user avatar
  • 495
1 vote
1 answer
236 views

How to increase the counter of a transaction

I am using @taquito/taquito. To transfer tezos tokens from one address to another is am using below function. Tezos.contract.transfer({ to: toAddress, amount: amountToSend, ...
user avatar
1 vote
0 answers
43 views

Error: TypeError: Cannot read property 'isValidPrefix' of undefined {}

var Tezos = taquito.Tezos; Tezos.setProvider({rpc: 'https://carthagenet.SmartPy.io', signer: new taquitoTezbridgeSigner.TezBridgeSigner()}) const amount = 1; const ...
user avatar
1 vote
1 answer
91 views

error: Public Cannot be exposed!

const address = 'tz1Qzi4iMowq8z4BEihyU1HvFFxAUXc9PbAF' tezbridge.request({method: 'post_source'}) taquito.Tezos.setProvider({rpc: 'https://rpc.tzkt.io/mainnet', signer: new ...
user avatar
0 votes
1 answer
88 views

Getting CORS errors on mainnet.smartpy.io with Taquito

const Tezos = new TezosToolkit('https://mainnet.smartpy.io'); const network = { type: 'mainnet', rpcUrl: 'https://mainnet.smartpy.io' }; This is what I've been using to hook up Taquito, ...
user avatar
0 votes
2 answers
32 views

Taquito "estimate" fails with "storage_exhausted.operation"

I was getting the error storage_exhausted.operation before when trying to send an operation. I thought I fixed it by ensuring I had enough funds in my account to cover the storage fee. Code was ...
user avatar
0 votes
1 answer
47 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 ...
user avatar
  • 115
0 votes
1 answer
44 views

Originating a contract fails with 'unexpected_lazy_storage' ONLY when exception optimisation level is set to 'full-debug'

I have a contract that originates correctly when exception_optimization_level is set to debug-message and default-line. The contract tests, compiles, and works as expected except for a bug that is ...
user avatar
  • 377
0 votes
2 answers
112 views

Taquito and Beacon-Wallet, error with wallet.requestPerrmission on network type

I'm trying to connect a webapp to Temple wallet with Taquito. I'm not an expert of Typescript, I'm learning on the way, and I have a problem. Here's my TS code: import { BeaconWallet } from '@taquito/...
user avatar
  • 23
0 votes
1 answer
28 views

Tezos Taquito Originating

In taquito What is the web service being called with what data and end point while originating? I couldn't figure it out, can you please help me ?
user avatar
0 votes
1 answer
53 views

Packing args in taquito to match sp.pack / PACK

How can i pack on taquito side params so that they match what i would get in smartpy with sp.pack? Say i have params two ints and a string: 1, 3, "something" What do i need to do in taquito ...
user avatar
0 votes
1 answer
74 views

How to get parsed / human-readable contract storage with tezos-node?

How can I get human-readable contract storage data with tezos-node? If I run a command like curl -s http://localhost:8732/chains/main/blocks/head/context/contracts/KT1BGQR7t4izzKZ7eRodKWTodAsM23P38v7N/...
user avatar
0 votes
2 answers
45 views

Calling Harbinger price contract get method in taquito

I am trying to call the get method of the coinbase normalizer harbinger price contract (KT1AdbYiPYb5hDuEuVrfxmFehtnBCXv4Np7r). Is this the correct way to call the get method, as it doesn't seem to be ...
user avatar
  • 3
0 votes
1 answer
57 views

How can I tell if a WalletOperation failed in Taquito?

How can I tell if a WalletOperation failed in Taquito? After I dispatch a WalletOperation, I can await the results using the confirmation method like so: const confirmation = await op.confirmation() ...
user avatar
0 votes
2 answers
91 views

This.rpc.getBalance is not a function

I have a problem during the call to view the balance of an address. I'm following the various tutorials and the following error is raised: this.rpc.getBalance is not a function and it does not return ...
user avatar
0 votes
1 answer
48 views

Is there a way to list the supported networks from Temple using Taquito?

I'm using Taquito with Temple wallet (prev. Thanos) i my dapp. To connect the wallet I need to do wallet.connect(<name_of_network>). If I'm using the wrong network name here I get an error from ...
user avatar
  • 1,973
0 votes
1 answer
85 views

ERROR: Public Key Cannot be Exposed

tezbridge.request({method: 'post_source'}) taquito.Tezos.setProvider({rpc: 'https://rpc.tzkt.io/mainnet', signer: new taquitoTezbridgeSigner.TezBridgeSigner()}) taquito.Tezos.contract.transfer({ to: ...
user avatar