gunasaras
gunasaras

Reputation: 31

How to fix the send transaction Implicit contract error on Tezos

How to Fix the Implicit contract error to send Transaction On Tezos for Nodejs and PHP

Node error :Command failed : Empty implicit contract Php Error : [{"kind":"branch","id":"proto.004-Pt24m4xi.implicit.empty_implicit_contract","implicit":"tz1.........................."}]

Upvotes: 3

Views: 2774

Answers (1)

Achal Singh
Achal Singh

Reputation: 186

I ran into the same issue while working with the eztz library of tezos on Node JS. I suggest you going through the following points:

  1. Changing the host of your cURL request to https://rpc.tezrpc.me if you're publishing on mainnet and this https://rpcalpha.tzbeta.net if you're publishing on Testnet (or Babylonnet, previously Alphanet).
  2. I also suggest changing your fee value to 1275 and storage_limit to 300 in case changing the host doesn't help alone.
  3. I have also noticed that you're passong a value of 1 in the amount field, I hope you know that the value in this field is in Micro-Tez or μꜩ. Which means that the value here is divided by 10 ^ -6. So I suggest making changes accordingly, like if you wish to send 1 Tezos, write amount: 1000000.
  4. Make sure that the counter value you pass in the counter field is 1 more than what you get from the /chains/main/blocks/head/context/contracts/tz1........................../counter API

Please let me know if any of this worked out for you, if not, feel free to revert :)

Upvotes: 1

Related Questions