Rest API testing

This tool will test all the Rest API endpoints of Proxy using erdjs.

Please load and sync the account before running tests. Otherwise, the tests will fail. After loading the account, it's address will be displayed. In order to run the tests successfully, please mint the address so it can send transactions.

Tests that involve transaction sending are skipped when pressing the 'Run Tests' button because they will have nonce issues as they use the same account. Test them separately and with a delay between them so the nonce will be correct assuming the continuous transactions flow.

Network

Account

Address:
Nonce:
Balance:

Tests

Address group
/address/:address - should work

Gets data about an address.

/address/:address - should err because of invalid bech32 address

Gets data about an address.

/address/:address/nonce

Gets the nonce of an address.

/address/:address/balance

Gets the balance of an address.

/address/:address/shard

Gets the shard of an address.

/address/:address/transactions

Gets the transactions of an address.

Actions group
/actions/reload-observers

Gets the heartbeat list.

Node group
/node/heartbeatstatus

Gets the heartbeat list.

Network group
/network/config

Gets the current network configuration.

/network/status/:shard

Gets the network status for a given shard.

Transaction group
/transaction/send

Sends a transaction.

/transaction/send-multiple

Sends 2 transactions.

Validator group
/validator/statistics

Gets the validator statistics.

VM Values group
/vm-values/query

Gets the vm values query. Tested with the auction smart contract address with the function getQueueSize

/vm-values/int

Gets the vm values query and returns as int. Tested with the auction smart contract address with the function getQueueSize

/vm-values/string

Gets the vm values query and returns as string. Tested with the auction smart contract address with the function getQueueSize