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
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
0 votes
1 answer
28 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 ...
Sanket Nighot's user avatar
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 ...
Solider's user avatar
  • 13
1 vote
3 answers
67 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
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
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 ...
Muhammed Ekici's user avatar
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.
user avatar
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 ...
user avatar
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 ...
user avatar
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 ...
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
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 ...
user avatar
0 votes
2 answers
308 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 ...
Sanket Nighot'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
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 ...
ztepler's user avatar
  • 158
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....
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
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 ...
Luiz Milfont's user avatar
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":[ { ...
user avatar
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 = ...
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
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 ...
Luiz Milfont's user avatar
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 ...
lee brune's user avatar
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 ...
Sam Morrow's user avatar
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.
hlvntn's user avatar
  • 111
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
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
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, ...
Grum's user avatar
  • 147
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 ...
Grum's user avatar
  • 147
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 ...
Evan Fisher's user avatar
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
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
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-...
Hevar's user avatar
  • 31
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
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/...
user3078439's user avatar
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 ...
rpj's user avatar
  • 15
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":"...
Evan Fisher'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
0 votes
1 answer
76 views

How to mint an NFT collection (single operation) using taquitos?

I can currently mint a single NFT using a node.js script. e.g. contract.methods.mint(char2Bytes(ipfsUrl), userAddress) How can I mint, say 10 NFTs, in a single operation (and avoid costs in Tez ...
Rafael Viana's user avatar
0 votes
1 answer
54 views

How to set the storage on taquito application?

I'm using this smart contract: https://github.com/claudebarde/taquito-pinata-tezos-nft/blob/main/contract/NFTS_contract.mligo I can deploy it on the https://ide.ligolang.org/ using the storage they ...
Rafael Viana's user avatar
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
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
0 votes
1 answer
60 views

Taquito does not originate or interact with test net contracts

I can't get Taquito (version 14.0.0) to write to the blockchain. Below is a minimal (typescript, macos) example to originate a trivial contract on the ghostnet. It gets stuck waiting at the await ...
Bijou Trouvaille's user avatar
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
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
0 votes
1 answer
58 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 ...
0x10's user avatar
  • 359
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