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
1 answer
26 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 ...
1 vote
2 answers
63 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 ...
  • 43
0 votes
0 answers
14 views

Forge, sign and send transaction with Taquito and BeaconWallet

I'm trying to build and send a simple transaction to test forging, signing and injecting methods. I want to sign transaction using BeaconWallet. Here's my code // 1. Create transaction data const ...
  • 35
1 vote
1 answer
27 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: ...
  • 35
1 vote
1 answer
33 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 ...
2 votes
0 answers
37 views

How to prepare tezos multi-sig transaction

I am trying to do multi-sig transaction using taquito. I am using the following implementation : https://gitlab.com/tezos/tezos/-/blob/master/tests_python/contracts_alpha/mini_scenarios/...
  • 21
4 votes
1 answer
28 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 ...
4 votes
1 answer
50 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 ...
1 vote
1 answer
28 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 ...
  • 449
2 votes
1 answer
38 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 ...
  • 23
0 votes
0 answers
43 views

ListValidationError on interacting with contract using Taquito

I'm trying to interact with this entrypoint using taquito parameter pair token_assets list($token_assets_item) trigger_time timestamp token_assets_item pair amount nat asset_id string ...
0 votes
0 answers
71 views

Taquito / BeaconWallet : how to check connected network?

I've developed a faucet for testnet: https://tezos-testnet-faucet.netlify.app, using Taquito and Beacon Wallet. And I have a strange, and dangerous, behaviour with it. I tested only with Temple wallet,...
  • 35
0 votes
2 answers
75 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 ...
1 vote
1 answer
86 views

General solution for getting fungible token balance off-chain

Given the public hash of a fungible token contract, I want to get the amount of tokens owned by a wallet. I want to perform this operation off-chain so that it is free. FA1.2 (tzip7) has getBalance() ...
  • 139
0 votes
1 answer
70 views

Packing and signing a payload in Taquito

I'm trying to call a contract method that checks a signature against the chain ID, contract address, caller, and params. The contract lives at KT1XoT3RTkXCN2y25e635WeEmjN4xszQWtq6 on mainnet, and here ...
  • 115
0 votes
0 answers
12 views

Cannot read ticket on taquito

See link here : https://github.com/ecadlabs/taquito/issues/550 I am trying to read a ticket on a storage (using taquito v11.2.0) Here is the stack Typecheck(val: any) { if (this.root instanceof ...
2 votes
2 answers
80 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)) ...
0 votes
0 answers
41 views

BeaconWalletNotInitialized exception when using ledger nano with Taquito

When using Taqutio with the Ledger nano with the code below: const connectNano = async (): Promise<void> => { try { setLoadingNano(true); const transport = await ...
  • 557
0 votes
1 answer
54 views

Originating a contract fails with 'unexpected_lazy_storage' ONLY when exception optimisation level is set to 'full-debug'

I have a contract that originates correctly when exception_optimization_level is set to debug-message and default-line. The contract tests, compiles, and works as expected except for a bug that is ...
  • 449
0 votes
1 answer
48 views

Branch contract calls

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

SvelteKit on Vercel with Taquito cjs & esm problem

I'm tyring t o make a SvelteKit App on Vercel with Taquito. But there're cjs & esm problem & I don't built it yet. This solution for vue & vite is the below link . I think it's same ...
  • 1
0 votes
1 answer
130 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
2 answers
171 views

Taquito and Beacon-Wallet, error with wallet.requestPerrmission on network type

I'm trying to connect a webapp to Temple wallet with Taquito. I'm not an expert of Typescript, I'm learning on the way, and I have a problem. Here's my TS code: import { BeaconWallet } from '@taquito/...
  • 35
0 votes
0 answers
27 views

Tezos Taquito Originate Process

I understand Taquito can originate a contract, but I am unable to understand how and what happens in that process. Can someone explain the process.
0 votes
1 answer
31 views

Tezos Taquito Originating

In taquito What is the web service being called with what data and end point while originating? I couldn't figure it out, can you please help me ?
0 votes
1 answer
68 views

Call contract entrypoint that requires tez to be sent

I'm trying to call a mint entrypoint that requires tez to be sent along with the contract call. I'm not sure how I would do that and I can't find any examples. This is the entrypoint schema: "...
  • 3
0 votes
0 answers
22 views

How to create operation object of kind originate?

I am using '@taquito/rpc' functions such as forgeOperations, sign('@taquio/signer') and injectOperation to deploy a contract. I would like to know the contents to be included to originate a contract ...
0 votes
0 answers
49 views

Taquito batch operations in raw format

I've seen TempleWallet display parameters like this: { destination: 'KT1DornVnLZWu3VaJnDLB2RubSFSPBZaKq4W', kind: 'transaction', amount: 0, parameters: { entrypoint: 'GetReward', value:...
  • 175
0 votes
1 answer
62 views

How to transfer between two tz1 accounts using Taquito RPC functions such as forgeOperations and injectOperation?

I want to use taquito to successfully transfer the amount between two tz1 accounts without using the transfer function of contract API or wallet API. Instead, I want to use taquito RPC functions such ...
0 votes
1 answer
110 views

Getting CORS errors on mainnet.smartpy.io with Taquito

const Tezos = new TezosToolkit('https://mainnet.smartpy.io'); const network = { type: 'mainnet', rpcUrl: 'https://mainnet.smartpy.io' }; This is what I've been using to hook up Taquito, ...
0 votes
1 answer
49 views

How to forge an operation of kind reveal along with operation of kind transaction using Taquito?

I am using methods such as forgeOperations, injectOperation provided by '@taquito/rpc' package. However, this method works for already revealed accounts to complete the transfer between two tz1 ...
0 votes
1 answer
52 views

How to know the `branch` value while forging an operation using Taquito?

0 I want to use forgeOperation function provided by '@taquito/rpc' to make a transfer between two tz1 accounts. I can estimate gasLimit, storageLimit and suggestedFee using '@taquito/taquito' estimate ...
0 votes
1 answer
46 views

How to know the transaction counter of an address before making a transaction using Taquito?

I want to use forgeOperation and injectOperation function provided by '@taquito/rpc' to make a transfer between two tz1 accounts. I can estimate gasLimit, storageLimit and suggestedFee using '@taquito/...
0 votes
1 answer
63 views

Packing args in taquito to match sp.pack / PACK

How can i pack on taquito side params so that they match what i would get in smartpy with sp.pack? Say i have params two ints and a string: 1, 3, "something" What do i need to do in taquito ...
0 votes
1 answer
32 views

"tezbridge.request" forge operation failed

After multiple failed attempts with tezos.contract.at(addr).methods.entrypoint(args).send(amount), see Revealed public keys but failed to transfer on GRANADANET, I turned to the API tezbridge.request. ...
0 votes
1 answer
80 views

How to get parsed / human-readable contract storage with tezos-node?

How can I get human-readable contract storage data with tezos-node? If I run a command like curl -s http://localhost:8732/chains/main/blocks/head/context/contracts/KT1BGQR7t4izzKZ7eRodKWTodAsM23P38v7N/...
0 votes
0 answers
30 views

Revealed public keys but failed to transfer on GRANADANET

The keys are revealed on the corresponding network, also, if I try to transfer the amount below the requirement (I designed in the smart contract), I can confirm the contract has been run through by ...
1 vote
1 answer
76 views

Taquito: error when using "parameter" in withTransfer with Batch API

I am trying to transfer an amount to a contract while calling a contract endpoint using the Batch API provided by Taquito. I've tried passing a parameter object as shown in the Taquito documentation, ...
  • 21
0 votes
1 answer
59 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
47 views

Calling Harbinger price contract get method in taquito

I am trying to call the get method of the coinbase normalizer harbinger price contract (KT1AdbYiPYb5hDuEuVrfxmFehtnBCXv4Np7r). Is this the correct way to call the get method, as it doesn't seem to be ...
  • 3
0 votes
1 answer
66 views

How can I tell if a WalletOperation failed in Taquito?

How can I tell if a WalletOperation failed in Taquito? After I dispatch a WalletOperation, I can await the results using the confirmation method like so: const confirmation = await op.confirmation() ...
0 votes
1 answer
96 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 ...
  • 51
1 vote
1 answer
69 views

How to fetch list of known addresses in Taquito?

Just like we can run tezos-client list known contracts to get a list of deployed contracts and any user accounts, is there a way to do the same using Taquito? So, in short, I've RPC address and wish ...
  • 51
2 votes
1 answer
141 views

How to convert hex string/bytes to ASCII characters

Using Taquito I can load the storage from a smart contract. This storage contains a map called token_info. If I call token_info.get('symbol'), I get a hex string of "4d494e". How do I ...
1 vote
2 answers
151 views

How to fetch all the values in a big map using taquito?

Per the BigMapAbstraction Taquito API docs, there isn't a way to fetch all the values in that map. Is the suggested way to fetch all of values in the map by doing batch queries on it then? Or what's ...
  • 557
3 votes
1 answer
185 views

Why aren't the offchain views appearing?

I'm extending the smartpy FA2 template # FA2 = sp.import_script_from_url("https://smartpy.io/dev/templates/FA2.py") class TezosLandNft(FA2.FA2): ... which has the following offchain views ...
  • 557
0 votes
1 answer
162 views

How do I transfer tez while invoking a smart contract using Taquito?

const op = await contract.methods .buy(contractParams?.height, contractParams?.width) .send(); I have a buy entrypoint and would like to pass in some parameters and some tez at the ...
  • 557
0 votes
2 answers
103 views

This.rpc.getBalance is not a function

I have a problem during the call to view the balance of an address. I'm following the various tutorials and the following error is raised: this.rpc.getBalance is not a function and it does not return ...
1 vote
2 answers
220 views

How to prevent Taquito Tezos.estimate.transfer() from throwing a balance_too_low and cannot_pay_storage_fee error?

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 ...
1 vote
2 answers
399 views

Taquito + BeaconWallet = Signer?

I've configured Taquito to use the BeaconWallet this way: const wallet = new BeaconWallet(options) await wallet.requestPermissions({ network: { type: 'edonet' } ...
  • 175