Hot answers tagged

3 votes
Accepted

Unpacking return unexpected result

For packing and unpacking michelson values, you can use the @taquito/michel-codec package. Example: const { packDataBytes, unpackDataBytes } = require("@taquito/michel-codec"); export ...
2 votes
Accepted

Getting CORS errors on mainnet.smartpy.io with Taquito

There was a problem on SmartPy side. Is this working now?
2 votes
Accepted

General solution for getting fungible token balance off-chain

A better approach would be to use an Indexer. In general wallets only communicate with the chain directly to inject an operation or to do some sort of highly specific task with a single contract. ...
2 votes
Accepted

How to get encrypted Tezos private key from decrypted private key and password?

You are not required to have an encrypted key edesk, you can just provide the edsk without password and encrypt your wallet storage the way you prefer. Answering your exact question: Python solution: ...
2 votes
Accepted

How do you submit a pair when calling an entrypoint on a contract with Taquito?

Your code is correct, but you have to use the methodsObject property instead of methods if you want to use a JavaScript object as the parameter of the contract call. Alternatively, you can split the ...
2 votes

Simple connect wallet button with beacon and taquito in React - cannot find cipher-base

The answer from Thomas this is the solution. In my humble opinion not a great one. What you can do is, to downgrade react-scripts to 4.0.3 and then I think you get rid of your error. Why? Some ...
  • 122
1 vote

Simple connect wallet button with beacon and taquito in React - cannot find cipher-base

You need to provide a browserified version of stream and provide the resolution fallback to your bundler. You may need also crypto and buffer depending of what you are using in taquito. You can ...
  • 155
1 vote
Accepted

Ballot operation with Taquito and Beacon SDK

Your operation itself is formatted well, but you should pass to the wallet just the contents, like this: const hash = await wallet.sendOperations(op.contents); And yes, as you have already mentioned, ...
  • 2,427
1 vote

AddressValidationError when calling an entrypoint with Taquito

The issue is probably the order of the fields. Try to pass an object as value instead: routerMap.set("...", { exchangeAddress: ..., minimumOutput: ..., requiredTokenAddress: ..., ...
1 vote
Accepted

How to simply store signed, hashed data on Tezos blockchain?

You will store the information in a smart contract. (await <...>.send()).hash will give you the operation hash. In this example you can click Run code to obtain the operation hash.
1 vote
Accepted

Packing and signing a payload in Taquito

The layout is probably wrong. Make sure you use the same record layout in both locations. toSign = sp.set_type_expr( sp.record( chain = sp.chain_id, contract = sp....
1 vote
Accepted

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

Full debug implies that exceptions are filled with as much information as possible. As you’ve seen, you must have a big map somewhere it shouldn’t be. I’m not sure if something changed or not in ...
  • 3,220
1 vote

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

This works for me: const initConnect = async () => { try { const wallet_instance = new BeaconWallet({ name: NAME, preferredNetwork: PREFERRED_NETWORK, ...
  • 11
1 vote

Tezos Taquito Originating

The endpoint for all operation types is the same. All operations go to https://<node-rpc-address>/injection/operation, with a different payload for each type. If you are looking for help ...
1 vote

Packing args in taquito to match sp.pack / PACK

In SmartyPy - record = sp.record(x=1,y=3,z="something") bytes = sp.pack(record) pprint(vars(bytes)) gives something like - {'__initialized': True, '_f': 'pack', '_l': [(record ("...
1 vote
Accepted

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

If you like the way tzkt displays the storage of contracts, you should probably use their API instead of trying to get the information from a node. If you want to redo the same work, the human-...
1 vote

Taquito + BeaconWallet = Signer?

I've come back here a few times so it's time I put the solution to my problem in case I make this mistake again: Check that you've actually synced your wallet Assuming the project is in active ...

Only top scored, non community-wiki answers of a minimum length are eligible