You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use this instance to call any messages in the contract ABI file with the correct args. The function will return a payload (hex value), this signature includes all the information of the message.
consttx=api.tx.contract.call(contractAddress,endowment,// deposit amount, can be 0: BigNumber200000,// gas feepayload// the payload when calling specific message);
The last step: sign and send the tx. You can get the transaction status and all the event details inside the code and also check them on CENNZnet UI with block hash.
4. Common issues
The signer should have enough funds to sign a transaction. You can get tokens through faucet.
The network(Localhost or Rimu) of deploying contract and calling contract should be the same one.
For spin2win contract, should make sure the contract has enough funds to allocate assets. You can also top up the contract, using contract address, through faucet.
No description provided.
The text was updated successfully, but these errors were encountered: