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
0 votes
2 answers
63 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
50 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
13 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
84 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
20 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
11 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
0 answers
26 views

Need always to hard refresh the page after aborting the sync process with a wallet - how to fix this?

I am building a template with Beacon and Taquito and I cant handle one case. Currently I just sync and unsync with a wallet. But when I abort the sync process and close the Temple or Kukai popup I ...
David's user avatar
  • 82
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
18 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
0 answers
19 views

Why is ballot and proposal operations are only available in contract API and not in wallet API

can you tell my why « ballot » and « proposal » operations are only available in contract API and not in wallet API ? I want to use them in an app that uses both Ledger and Beacon wallet connection. ...
user avatar
0 votes
1 answer
17 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
227 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
40 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
30 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
14 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
63 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
36 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
49 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
33 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
67 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
48 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
23 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
51 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
83 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
143 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
31 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
28 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
0 votes
0 answers
22 views

500 internal error on import taquito module statement

Has anyone used Taquito with svelte-kit latest version ? I am facing issues while trying to import taquito in svelte-kit. I get 500 internal error on import taquito module statement and below error in ...
Parshant Singh's user avatar
2 votes
2 answers
39 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
54 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
135 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
48 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
38 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
24 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
74 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
51 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
112 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
79 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
56 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
234 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
31 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
78 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
39 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
119 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
53 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