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
1 vote
1 answer
309 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, ...
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 ...
0 votes
1 answer
113 views

Calling contract deployed on Tezos sandbox using Taquito

I've a simple contract deployed on Tezos sandbox (https://assets.tqtezos.com/docs/setup/2-sandbox/) and I'm using Taquito in frontend to call this contract. Earlier, I deployed the contract to global ...
0 votes
1 answer
63 views

Branch contract calls

I'm trying to replicate the contracts call for the raw found below: { "branch": "BMLgLBqf6dxFBNMLBBDkVtNSJCfQMcNxLiEmUKRmE8bYFrKY1CW", "contents": ...
0 votes
1 answer
29 views

Kukai and Umami Wallet Error for batch transaction but Successful for Temple wallet

When I try performing batch transactions, It works with Temple Wallet but when testing on Kukai it says too many transactions and while testing on Umami it says Beacon Error. Two transactions I am ...
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-...
0 votes
1 answer
128 views

How to call balance_of function using taquito i am facing a issue of parameters

I am calling balance_of function of contract using taquito but i am facing issue that how to pass parameters address and token value in it as it sit showing error const createInstance=async(res,obj,i)...
0 votes
2 answers
29 views

getting error from taquito while trying to access rpc url of smartpy

I am trying to access a URL url: 'https://mainnet.smartpy.io/chains/main/blocks/head/context/contracts/KT…… But it throws an error  HttpResponse: Http error response: (503) 503 Service Unavailable No ...
1 vote
1 answer
18 views

IPFS URI to tas.bytes

How can I properly pass an an IPFS URI to Taquito's tas.byteshelper? tas.bytes("https://ipfs.io/ipfs/QmeyjRSnCmWCtfV7jdrdSbY1druBA4hVYmXzdMAYowh74q") doesn't seem to work.
0 votes
1 answer
38 views

Large batch transactions are taking too long to be sent from Taquito to beacon wallets. Is there a known way to optimize it?

I have a dApp that creates a single batch transaction in Javascript and sends it (through Taquito) to beacons wallets (Kukai, Temple, etc.) and it is working flawlessly. However, after around 1500 ...
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 ...
0 votes
2 answers
149 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 ...
0 votes
1 answer
85 views

Taquito - Beacon connect dialog on iPhone does not show Temple Wallet option. How to solve it?

I have a dApp that connects to wallets through Beacon, using Taquito. On PC Desktop computers and Android, the Beacon connect dialog window shows many wallet alternatives and also a blue generic ...
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 ...
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)) ...
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.
0 votes
2 answers
88 views

I want to transfer the tokens from one contract to another address

When I transfer the token from the contract address: KT1LkNWZgVYh3zdaRkBb9aNgLEFCjVJwEKu2, it works well. However, when I switch back to the address KT1P8RdJ5MfHMK5phKJ5JsfNfask5v2b2NQS, an issue ...
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?
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 ...
0 votes
3 answers
105 views

How to call contract methods on my frontend web app?

How i call smart contract methods and views using my react.js app. im trying with this : const getUserInfo = async()=>{ const contract = await tezos.contract.at(contractAddress) await ...
0 votes
1 answer
26 views

Is it possible to get the transaction hash before the transaction is sent using Taquito?

Is it possible to get the transaction hash before the transaction is sent using Taquito? If yes, could you suggest how? Question from KStasi dev Slack.
0 votes
1 answer
12 views

Is it possible to pack a js object with specific types for its properties that can be unpacked in a smart contract

Is it possible to pack a javascript object with specific types for its properties that can be unpacked in a smart contract (for example Bytes.unpack in ligo)? I've come to the same point as the ...
0 votes
1 answer
40 views

Decoding the "0501..." strings used by SigningType.MICHELINE

Is there a trick to decoding the "0501..." strings used by SigningType.MICHELINE. I am trying to unpack it from python using: from pytezos.michelson.types import MichelsonType ty = ...
0 votes
1 answer
20 views

TZIP specifies that the list should be called "txs," some tokens may use "tx" and some even omit the name but tzkt still identifies them as FA2 tokens

I have a issue for batch transfer FA2 tokens (here). in certain cases, some FA2 tokens may not strictly adhere to the TZIP spec, especially the different names of annotations. For instance, while the ...
0 votes
2 answers
23 views

How can I transfer micheline code to michelson code?

how can I transfer micheline code to michelson code? I'm writing a lambda in michelson code that take some user's inputs. I can present it to user in michelson code for double check. but when the ...
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 (...
0 votes
1 answer
21 views

Does anyone have an example of using PollingSubscribeProvider for subscription in a web app?

Does anyone have an example of using PollingSubscribeProvider for subscription in a web app? I've attempted to use it, but I haven't been successful in making it work. Here's the documentation I've ...
0 votes
2 answers
309 views

Getting error in taquito nextjs project. [ReferenceError: localStorage is not defined]

I am working on a nextjs website for a tezos project. In the local environment, it's working fine. But I get an error while deploying it. Error: ReferenceError: localStorage is not defined at ...
0 votes
3 answers
15 views

Doesn't seem to be possible to call contract.methodObject.divestLiquidity

for this contract on ghostnet, KT1T42LtbG7skEACAkWxNJGqdcCn52Nhp3pH, if I go to tzkt or better call dev, I can see the entrypoint divestLiquidity is listed there. but if I call contract....
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 ...
0 votes
1 answer
33 views

How to correctly pass a Set as a parameter when calling a contract using Taquito?

I have a simple smart contract on the Tezos blockchain that contains a pair of a set of addresses and a counter in its storage. The contract has a single entrypoint that allows setting the storage to ...
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 ...
0 votes
2 answers
53 views

Does taquito have a way to parse the parameters of the entry-point in an operation?

Does taquito have a way to parse the parameters of the entry-point in an operation? For Example: "parameters":{ "entrypoint":"do_transfer", "value":[ { ...
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: ...
1 vote
0 answers
56 views

Beacon wallet (reading 'type') error in DAppClient.ts

we are currently encountering a bug using Beacon wallet in our Dapp. 

Our current feature functionality:
 We are offering the ability to Connect, Change, and Disconnect Wallet. Our disconnect works ...
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 ...
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":"...
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 ...
0 votes
2 answers
33 views

NatValidationError when deploying an archetype contract with taquito

I am attempting to deploy a very simple archetype contract with Taquito in a react Dapp. However, I am receiving a validation error. My guess is that I have the syntax wrong for the storage parameter, ...
0 votes
1 answer
34 views

How do you originate an archetype contract from within a dapp?

I’m trying to figure out how to originate a new contract from within a dapp. I seem to have found what I am looking for here: https://tezostaquito.io/docs/originate Here is the example code I am ...
0 votes
2 answers
36 views

I'm sending an amount on a contract call but the contract is not seeming to recognize the amount

I'm trying to make a contract call that requires an amount of tezos to be sent in. I've done this before and it has worked, but now I get this error every time. Here's the code I'm running: const ...
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.
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 ...
0 votes
1 answer
65 views

Issues using @tezos/taquito

I'm getting this error after installing tezos/taquito library in the frontend of my application, this is the error that I get when trying to load my app. ./node_modules/@vespaiach/axios-fetch-...
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 ...
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 ...
0 votes
2 answers
51 views

Draining a tz1 account

I have unsuccessfully been trying to drain accounts in the flextesa sandbox, so that all my scenarios start out in a clean state. Taquito's documentation suggests a way https://tezostaquito.io/docs/...
0 votes
1 answer
42 views

Translate SmartPy expression into Michelson

import smartpy as sp def logic(data): t = sp.TRecord(x=sp.TNat, y=sp.TNat, z=sp.TNat) unpacked = sp.unpack(data, t).open_some(message="Can't unpack!!") sp.result(unpacked.x ...
1 vote
0 answers
23 views

Counter for wallet is not incremented after mint using taquito

I'm minting successfully from a contract. Then when I go to transfer the NFT I get the error: "HttpResponse: Http error response: (500) [{"kind":"branch","id":"...
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/...