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
0answers
14 views

Branch contract calls

I'm trying to replicate the contracts call for the raw found below: { "branch": "BMLgLBqf6dxFBNMLBBDkVtNSJCfQMcNxLiEmUKRmE8bYFrKY1CW", "contents": ...
0
votes
0answers
9 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 ...
0
votes
1answer
27 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
2answers
31 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/...
0
votes
0answers
16 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
1answer
21 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
1answer
36 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: "...
0
votes
0answers
14 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
0answers
21 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:...
0
votes
1answer
34 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
1answer
41 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
1answer
21 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
1answer
22 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
1answer
32 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
1answer
32 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
1answer
23 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
1answer
52 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
0answers
20 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
1answer
43 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, ...
0
votes
1answer
19 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
2answers
37 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 ...
0
votes
1answer
43 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
1answer
60 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 ...
1
vote
1answer
43 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 ...
2
votes
1answer
79 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
2answers
108 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 ...
3
votes
1answer
125 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 ...
0
votes
1answer
110 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 ...
0
votes
2answers
68 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
2answers
93 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
1answer
210 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' } ...
3
votes
1answer
59 views

Is it possible to retrieve only a single variable from contract storage?

As far as I can tell using the taquito npm package, in order to get any storage from a contract, you have to get all of a contract's storage. This seems like it can become highly inefficient if you ...
0
votes
1answer
45 views

Is there a way to list the supported networks from Temple using Taquito?

I'm using Taquito with Temple wallet (prev. Thanos) i my dapp. To connect the wallet I need to do wallet.connect(<name_of_network>). If I'm using the wrong network name here I get an error from ...
0
votes
1answer
89 views

Storage is not getting returned by taquito

I am retrieving the instance of my contract properly with taquito as shown in the taquito example: const tezos = new TezosToolkit('https://mainnet-tezos.giganode.io/'); Then I go with tezos.at... And ...
1
vote
2answers
148 views

Listen for operations of a deployed contract

Coming from an ethereum web3 background, I'm accustomed to listening for a contract's events to figure out when things happen in my contract and react accordingly in the application. I'm looking for ...
0
votes
0answers
43 views

DAppClient with Tezos SetProvider? (this.walletProvider.mapOriginateParamsToWalletParams is not a function)

const wallet = await this.getWallet(this.selectedNetwork); // get wallet using DAppClient... const Tezos = new TezosToolkit(this.config.rpc_endpoints[this.selectedNetwork]); Tezos.setProvider({ ...
1
vote
1answer
197 views

Calling contract entrypoint having complex parameters

I am trying to call FA-2.0 transfer entry point using tezos taquito, I have also gone through https://tezostaquito.io/docs/complex_parameters/. however I get the error below when I try to call ...
1
vote
1answer
117 views

Can I iterate over a big_map using Taquito?

I have made a web interface for Tezos token interaction and now I would like to show a balance overview of the loaded tokens, i.e. show a list of address, account tuples . This requires me to be able ...
2
votes
1answer
49 views

Interact with Tezos in xamarin

im searching for a way to communicate to the chain in my xamarin app. The problem is that the native libs like this https://github.com/mscappini/Tz.Net are not really well looked after so im searching ...
1
vote
1answer
84 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
2answers
189 views

How do I get method arguments using Taquito?

When I have a object of type ContractAbstraction<ContractProvider>, I can get a key/value map of all the endpoints in the deployed contract like this: const contract: ContractAbstraction<...
2
votes
2answers
112 views

Passing parameters in truffle tests

I have this parameter for a function: type modify_list is | Add of list(address) | Remove of list(address) type modify_list_michelson is michelson_or_right_comb(modify_list) When I try to supply ...
1
vote
1answer
37 views

how to set type 'Sets' to orginate()

in smartpy, self.init(used = sp.set(t = sp.TSignature)) in taquito await Tezos.wallet.originate({ code: contractJson, storage: { used: [], } }) TezosOperationError { ...
2
votes
1answer
44 views

How to get Harbinger price feed from Taquito

I get an http error 'Key not found' The contract is a harbinger (coinbase carthage) storage contract. What is the correct 'get' param ? Tezos.contract.at('KT1P7D7jt3PfjMpsEKPyao1kHQR93t7XR5zh') .then(...
1
vote
2answers
348 views

How to retrieve the transaction details using Operation Hash in Taquito

I am trying to retrieve the transaction details like status and data using the operation hash in taquito. What I want to achieve is basically take the op hash as user input and retrieve the details ...
1
vote
1answer
81 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
0answers
22 views

Adding API key for node in Taquito

How do i add an API key for my rpc in set provider? I could not find the apiKey parameter in the document https://tezostaquito.io/typedoc/classes/_taquito_rpc.rpcclient.html
2
votes
1answer
62 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 ...
5
votes
3answers
417 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
188 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, ...