How to use the Contract Tester.
How to Interact with the Contract Tester
Note: Before doing anything, you must choose whether to use your API, Localnet (Spook Running on your machine) the official Phantasma Testnet or the Phantasma Mainnet.
- Select the desired
API
. - Select the
Contract
that you want to test. - Connect to the contract by signing in using
Poltergeist
orEcto
. - If you receive the Status Not Connected, after signing in using your wallet, an error must occured - if so, please reload the page and try again.
- Select the desired method to test, and fill in the required parameters.
- Make an
InvokeScript
orSendTransaction
call to test vaious aspects of your contract.
Tips
InvokeScript or InvokeRawScript
are used to call the chain without changing it - it fetches values from the chain without changing its state.SendTransaction
is used to make calls to the chain resulting in a changed state.
Contract Call
Output
Contract Call Output.