Questions tagged [taquito]
Questions related to using the [Taquito](https://tezostaquito.io) Typescript/Javascript library to interact with the Tezos blockchain
27
questions
0
votes
0answers
9 views
DAppClient with Tezos SetProvider? (this.walletProvider.mapOriginateParamsToWalletParams is not a function)
const wallet = await this.getWallet(this.selectedNetwork); // get wallet using DAppClient...
const Tezos = new TezosToolkit(this.config.rpc_endpoints[this.selectedNetwork]);
Tezos.setProvider({
...
2
votes
1answer
54 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 ...
1
vote
1answer
45 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 ...
2
votes
1answer
65 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,
...
1
vote
1answer
55 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 ...
2
votes
1answer
34 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 ...
0
votes
0answers
34 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 ...
1
vote
1answer
41 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 ...
1
vote
2answers
72 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'...
2
votes
2answers
72 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<...
2
votes
2answers
70 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 ...
2
votes
1answer
84 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-...
1
vote
1answer
19 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 { ...
2
votes
1answer
23 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(...
0
votes
1answer
57 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 ...
0
votes
0answers
15 views
Adding API key for node in Taquito
How do i add an API key for my rpc in set provider? I could not find the apiKey parameter in the document
https://tezostaquito.io/typedoc/classes/_taquito_rpc.rpcclient.html
4
votes
1answer
126 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 ...
2
votes
1answer
32 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 ...
4
votes
2answers
142 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 ...
5
votes
3answers
271 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 ...
1
vote
1answer
38 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
...
1
vote
0answers
20 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 ...
0
votes
1answer
29 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: ...
1
vote
1answer
34 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 ...
5
votes
1answer
44 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 = ...
4
votes
1answer
133 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 ...
2
votes
2answers
131 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 ...