Questions tagged [taquito]
Questions related to using the [Taquito](https://tezostaquito.io) Typescript/Javascript library to interact with the Tezos blockchain
113
questions
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 ...
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?
1
vote
1
answer
302
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
150
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
112
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
62
views
Branch contract calls
I'm trying to replicate the contracts call for the raw found below:
{ "branch":
"BMLgLBqf6dxFBNMLBBDkVtNSJCfQMcNxLiEmUKRmE8bYFrKY1CW",
"contents":
...
2
votes
1
answer
233
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
119
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)...
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
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 ...
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 ...
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 ...
0
votes
2
answers
133
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
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 ...
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 ...
2
votes
1
answer
168
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
109
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
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 ...
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.
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 ...
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 ...
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 = ...
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
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 (...
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. ...
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 ...
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 ...
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....
1
vote
2
answers
222
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
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 ...
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 ...
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":[
{
...
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: ...
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 ...
2
votes
2
answers
290
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
83
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
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 ...
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, ...
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 ...
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 ...
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 ...
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.
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
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-...
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 ...
2
votes
2
answers
262
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
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/...
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 ...
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":"...