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
1
vote
1answer
36 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, ...
4
votes
1answer
86 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
25 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 ...
2
votes
1answer
59 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-...
4
votes
2answers
109 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 ...
4
votes
3answers
164 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
42 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
27 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
17 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
25 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
16 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
39 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
109 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
106 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 ...
1
vote
1answer
35 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'...