Transactions Api
GET /rpc/v1/transactions/chain_id HTTP/1.1 Host: rpc-testnet.supra.com Accept: */*
current chain id
1
GET /rpc/v1/transactions/estimate_gas_price HTTP/1.1 Host: rpc-testnet.supra.com Accept: */*
Returns the mean and maximum gas prices of recently executed transactions.
{ "mean_gas_price": 1, "max_gas_price": 1 }
Hash of the transaction to lookup
Information about a Supra transaction.
GET /rpc/v1/transactions/{hash} HTTP/1.1 Host: rpc-testnet.supra.com Accept: */*
Transaction data of the given transaction hash
No content
GET /rpc/v2/transactions/estimate_gas_price HTTP/1.1 Host: rpc-testnet.supra.com Accept: */*
Returns the mean, median and maximum gas prices of recently executed transactions.
{ "mean_gas_price": 1, "max_gas_price": 1, "median_gas_price": 1 }
GET /rpc/v2/transactions/{hash} HTTP/1.1 Host: rpc-testnet.supra.com Accept: */*
{ "authenticator": {}, "block_header": null, "hash": "text", "header": { "chain_id": 1, "expiration_timestamp": { "timestamp": 1 }, "sender": "text", "sequence_number": 1, "gas_unit_price": 1, "max_gas_amount": 1 }, "payload": {}, "output": { "Dkg": "Success" }, "status": "Success" }
Transaction variants supported by Supra.
POST /rpc/v1/transactions/simulate HTTP/1.1 Host: rpc-testnet.supra.com Content-Type: application/json Accept: */* Content-Length: 218 { "Smr": { "signer_data": { "signer": {}, "signature": {} }, "transaction": { "header": { "chain_id": 1, "expiration_timestamp": { "timestamp": 1 }, "sender": "text", "sequence_number": 1, "gas_unit_price": 1, "max_gas_amount": 1 }, "payload": {} } } }
Simulate a transaction against the current state of the RPC node. The transaction must have an invalid signature.
Hex encoded hash
POST /rpc/v1/transactions/submit HTTP/1.1 Host: rpc-testnet.supra.com Content-Type: application/json Accept: */* Content-Length: 218 { "Smr": { "signer_data": { "signer": {}, "signature": {} }, "transaction": { "header": { "chain_id": 1, "expiration_timestamp": { "timestamp": 1 }, "sender": "text", "sequence_number": 1, "gas_unit_price": 1, "max_gas_amount": 1 }, "payload": {} } } }
transaction submitted
text
POST /rpc/v2/transactions/simulate HTTP/1.1 Host: rpc-testnet.supra.com Content-Type: application/json Accept: */* Content-Length: 218 { "Smr": { "signer_data": { "signer": {}, "signature": {} }, "transaction": { "header": { "chain_id": 1, "expiration_timestamp": { "timestamp": 1 }, "sender": "text", "sequence_number": 1, "gas_unit_price": 1, "max_gas_amount": 1 }, "payload": {} } } }