push_transactions
The push_transactions method is designed to submit multiple transactions to the EOS blockchain simultaneously. This method expects an array of transactions in JSON format and attempts to apply them to the blockchain, enabling a range of blockchain interactions like transferring tokens, invoking smart contracts, and more.
Example use cases:
Bulk Transaction Submission
Developers and users can use the push_transactions method to broadcast multiple transactions to the EOS network in one go, facilitating various blockchain interactions and operations.
Bulk Smart Contract Interaction
This method is vital for invoking actions on multiple smart contracts deployed on the EOS blockchain, allowing users to interact with multiple decentralized applications simultaneously.
Bulk Token Transferpush_transactions is used for transferring EOS tokens or other tokens deployed on the EOS blockchain between multiple accounts in a single request.
Parameters
parameter | type | description |
|---|---|---|
transactions | array of Transaction Objects | Array of transaction objects to be broadcasted. |
Transaction Object Fields
field | type | description |
|---|---|---|
expiration | string | Time that the transaction must be confirmed by. |
ref_block_num | integer | Reference block number. |
ref_block_prefix | integer | 32-bit portion of block ID. |
max_net_usage_words | string or integer | Maximum network usage in words. |
max_cpu_usage_ms | string or integer | Maximum CPU usage in milliseconds. |
delay_sec | integer | Number of seconds to delay execution. |
context_free_actions | array of objects | Actions that are context-free. |
actions | array of objects | Actions that are context-dependent. |
transaction_extensions | array of array of integers or strings | Extensions to the transaction. |
Return Object
Upon successful broadcast of transactions, the push_transactions method typically does not return any object but acknowledges with a 200 OK status.
JSON-RPC Request Example
Response Example
200 OK status implies successful broadcast, and typically no object is returned.