Transactions
Transactions Api
Get statistics derived from the gas prices of recently executed transactions.
Returns the mean and maximum gas prices of recently executed transactions.
GET /rpc/v1/transactions/estimate_gas_price HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Returns the mean and maximum gas prices of recently executed transactions.
{
"mean_gas_price": 1,
"max_gas_price": 1
}
Retrieve limits that a client must respect when composing a transaction.
Acceptable parameters for transaction submission
GET /rpc/v1/transactions/parameters HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Acceptable parameters for transaction submission
{
"max_transaction_time_to_live_seconds": 1
}
Transaction variants supported by Supra.
Simulate a transaction against the current state of the RPC node. The transaction must have an invalid signature.
POST /rpc/v1/transactions/simulate HTTP/1.1
Host: rpc-mainnet.supra.com
Content-Type: application/json
Accept: */*
Content-Length: 796
{
"Move": {
"raw_txn": {
"sender": "3ef46383308ad31c00ce1ca02bf113a9327a94e302d934f32f70954bb4cba035",
"sequence_number": 0,
"payload": {
"EntryFunction": {
"module": {
"address": "0x0000000000000000000000000000000000000000000000000000000000000001",
"name": "supra_account"
},
"function": "transfer",
"ty_args": [],
"args": [
[
234,
100,
210,
42,
5,
4,
135,
249,
11,
193,
212,
28,
224,
115,
170,
202,
20,
90,
51,
180,
133,
54,
138,
63,
213,
95,
209,
36,
173,
235,
38,
224
],
[
0,
45,
49,
1,
0,
0,
0,
0
]
]
}
},
"max_gas_amount": 500000,
"gas_unit_price": 100,
"expiration_timestamp_secs": 1841875694,
"chain_id": 255
},
"authenticator": {
"Ed25519": {
"public_key": "0x7b017e7c4b83e06ad2dab990ff3b091f9995a2a2610dee1d665dc8a2510b539f",
"signature": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
}
}
}
Simulate a transaction against the current state of the RPC node. The transaction must have an invalid signature.
{
"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"
}
Submit a transaction to Supra.
Transaction variants supported by Supra.
transaction submitted
Hex encoded hash
POST /rpc/v1/transactions/submit HTTP/1.1
Host: rpc-mainnet.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
Get information about a transaction by its hash.
Hash of the transaction to lookup
Transaction data of the given transaction hash
GET /rpc/v1/transactions/{hash} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Transaction data of the given transaction hash
No content
Get statistics derived from the gas prices of recently executed transactions.
Returns the mean, median and maximum gas prices of recently executed transactions.
GET /rpc/v2/transactions/estimate_gas_price HTTP/1.1
Host: rpc-mainnet.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
}
Transaction variants supported by Supra.
Simulate a transaction against the current state of the RPC node. The transaction must have an invalid signature.
POST /rpc/v2/transactions/simulate HTTP/1.1
Host: rpc-mainnet.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.
{
"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"
}
Get information about a transaction by its hash.
Hash of the transaction to lookup
Transaction data of the given transaction hash
GET /rpc/v2/transactions/{hash} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Transaction data of the given transaction hash
{
"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.
Simulate a transaction against the current state of the RPC node. The transaction must have an invalid signature.
POST /rpc/v3/transactions/simulate HTTP/1.1
Host: rpc-mainnet.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.
{
"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"
}
Submit a transaction to Supra.
Transaction variants supported by Supra.
transaction submitted
Hex encoded hash
POST /rpc/v3/transactions/submit HTTP/1.1
Host: rpc-mainnet.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
Get information about a transaction by its hash.
Hash of the transaction to lookup
Type of the transaction to be queried.
Transaction data of the given transaction hash
GET /rpc/v3/transactions/{hash} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Transaction data of the given transaction hash
{
"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",
"txn_type": "user"
}