Slot Transactions
How to programatically submit transactions to Slot Tenant contracts
Transactions submitted to Slot Delegates are prioritized in Eden Blocks. For users who prefer to send transactions programatically, Eden Relay supports two methods for sending Eden transactions: eth_sendSlotTx andeth_sendSlotTxs.

eth_sendSlotTx

Method: POST
Headers:
1
Content-Type = "application/json"
Copied!
Body:
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"method": "eth_sendSlotTx",
5
"params": [
6
tx // String, A single signed transactions to execute in a slot
7
]
8
}
Copied!

Parameters

    tx: String - A single signed transactions to execute in the slot

eth_sendSlotTxs

Method: POST
Headers:
1
Content-Type = "application/json"
Copied!
Body:
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"method": "eth_sendSlotTxs",
5
"params": [
6
txs, // Array[String], A list of signed transactions to execute in a slot
7
withoutGossip, // (Optional) Bool, if true, transactions are not broadcasted to other peers. Default is true
8
notAllowedToFail // (Optional) Bool, If true failed transactions are not included in the block. Default is true
9
}
Copied!

Parameters

    txs: Array[String] - A list of signed transactions to execute in the slot (ordered)
    withoutGossip: Bool - (optional) If true, transactions are not broadcasted to other peers. Default is true.
    notAllowedToFail: Bool - (optional) If true failed transactions are not included in the block. Default is true.

Example request

1
{
2
"jsonrpc": "2.0",
3
"id": 2919293,
4
"method": "eth_sendSlotTxs",
5
"params": [{
6
txs: ["0x123abc...", "0x456def..."],
7
withoutGossip: true,
8
notAllowedToFail: false
9
}]
10
}
11
​
Copied!

Example response

1
{
2
"jsonrpc": "2.0",
3
"id": 2919293,
4
"result": [
5
{
6
"result": "error",
7
"code": "-32000",
8
"message": "nonce too low"
9
"data": "0x123abc..."
10
},
11
{
12
"result" : "0x3f39e..."
13
}
14
]
15
}
Copied!
Last modified 22d ago