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 ...
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 ...
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 ...
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 ...
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....
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 ...
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#...
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, ...
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 ...
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/<...
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
...
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 ...
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 ...
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 ...
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 ...
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(
"...
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}) ...
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 ...
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);
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
eztz × 19smart-contracts × 7
michelson × 3
micheline × 3
tezos-client × 2
transactions × 2
operation × 2
account × 2
cryptography × 2
node × 1
rpc × 1
ledger × 1
wallets × 1
error × 1
storage × 1
transfer × 1
alphanet × 1
setup × 1
security × 1
tezos-signer × 1
key × 1
remote-signer × 1
reveal × 1
tezos-base × 1
encrypted × 1