Hot answers tagged

6 votes
Accepted

How to specify the smart contract entry point in eztz call?

Michelson doesn't support multiple entry points right now. Liquidity uses unions (or type variables) to make up for this. A union has a Left and Right side, but can also be nested. Let's analyse the ...
user avatar
6 votes
Accepted

Inject Signed Operation Fails With Unrevealed_Key Error

Before sending transactions from an account, a 'reveal' operation must be made for the account. It looks like this account may have been activated, but not yet revealed. To make this work we would ...
user avatar
  • 421
5 votes
Accepted

Error: Protocol not supported when trying to connect eztz-cli to tezos node

Last commit to eztz-cli was in November of 2017. So I would consider it outdated. The query in getBalance() is no longer valid. It's no longer possible to create free accounts, you need to use the ...
user avatar
  • 1,320
5 votes
Accepted

Activating a Alphanet Faucet Wallet Remotely (without tezos-client)

Yes this is possible with sotez. There initially was a bug with the activate function which was just fixed in 0.2.11. You can do something like the following to activate an account as well as generate ...
user avatar
  • 421
4 votes

Activating a Alphanet Faucet Wallet Remotely (without tezos-client)

You can do this using the eztz library. Here are the relevant commands you want to look at: //Point to alphanet node eztz.node.setProvider("https://alphanet.tezrpc.me"); //From https://faucet....
user avatar
4 votes
Accepted

How to call a smart contract method with params with eztz?

You can use the contract send method: eztz.contract.send(contract, keys, amount, parameter, fee, gasLimit, storageLimit) For parameter, you just enter in the raw Michelson input (the same you would ...
user avatar
3 votes
Accepted

Can someone give me a noob guide to get eztz up and running on my ubuntu system? I'm getting the following error

npm i eztz wont work. Instead you can add eztz's git repo as a dependency in your package.json "dependencies": { "eztz": "git://github.com/TezTech/eztz.git#...
user avatar
  • 1,320
3 votes

How to call a smart contract method with params with eztz?

I don't have a readily available example for you but in eztz, contracts have a method send with a parameter parameter. That should do the trick. send : function(contract, keys, amount, parameter, ...
user avatar
  • 3,185
2 votes

How to get smart-contract storage data?

Tzscan has joined the Dune network and APIs can change quite dramatically, which will break your app. Why not using Taquito? It is simple and elegant and the package being bundled with your app, it ...
user avatar
2 votes
Accepted

How to get smart-contract storage data?

I found the solution! For me it: function httpGet() { let xmlHttp = new XMLHttpRequest(); xmlHttp.open( "GET", 'https://alphanet-node.tzscan.io/chains/main/blocks/head/context/contracts/<...
user avatar
2 votes
Accepted

How to watch transaction status with eztz after eztz.contract.send

There's actually a new function with eztz that does this now: eztz.rpc.awaitOperation( opHash, //The operation hash to watch interval, //Optional - Time between checks, defaults to 30 seconds ...
user avatar
2 votes
Accepted

eztz paper wallet

With regards to the difference between public key (pk), secret key (sk) and public key hash (pkh). The public key is used by other people to send encrypted messages to you, and it is also used by ...
user avatar
  • 2,348
2 votes
Accepted

What Activate-Reveal an account refer to

These are very different operations... activate_account is an anonymous operation that bootstraps the account with some coins purchased during ICO. So, this is for the ICO participants only. Or for ...
user avatar
  • 2,327
2 votes

Operation injected to node, but not added to blockchain | Wallet counter error

TLDR: the first operation you injected in your node is valid but will be never be injected by other nodes/bakers because it has too low fees. It is then stuck in the mempool and make the the next ...
user avatar
  • 86
2 votes

Why cant i call the contract entry point with type parameter througth eztz.contract.send

I fixed the problem just know, the thing here was that i didn't realize until i noticed how i was receiving the balance of the contract that i had to send the atomized value of the amount in tez. So ...
user avatar
1 vote

Getting errors related to the smart contract after running eztz.contract.send()

This occured because the Michelson in the parameter was ill written and the fee was to low. So these were the changes i made to the function ... -Before: eztz.contract .send( "...
user avatar
1 vote
Accepted

how can i send operation throught eztz to a contract specific entry point?

Extracting an answer from the comments (kudos to @Klassare) That the private key (keysext.sk) is passed as an argument when eztz expects a keys object (keys = {pkh: string, sk: string, pk: string}) ...
user avatar
  • 6,006
1 vote

Tezos error messages - branch refused etc

I also faced same error - "Branch refused" sometimes for contract deployment on tezos network. This error occurs when we use wrong network url. First of all make sure your network provider link is ...
user avatar
  • 31
1 vote

How to get smart-contract storage data?

You can use eztz function as that worked for me, storage = await eztz.contract.storage(contractAddress); The output will be in JSON format, you can stringify the output as, JSON.stringify(storage); ...
user avatar
  • 31

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