Method eth_sendBundle can be used to send your bundles to Giga builder
# request format { "jsonrpc" :"2.0" ,"id" :1 ,"method" :"eth_sendBundle" ,"params" :[ { txs,// Array[String], A list of signed transactions to execute in an atomic bundle blockNumber,// String, a hex encoded block number for which this bundle is valid on minTimestamp,// (Optional) Number, the minimum timestamp for which this bundle is valid, unix timestamp maxTimestamp,// (Optional) Number, the maximum timestamp for which this bundle is valid, unix timestamp revertingTxHashes,// (Optional) Array[String], A list of tx hashes that are allowed to revert replacementUuid,// (Optional) String, UUID that can be used to cancel/replace this bundle } ] } # example request curl -X POST -H 'Content-Type: application/json' --data '{ "jsonrpc" :"2.0" ,"id" :1 ,"method" :"eth_sendBundle" ,"params" :[ { "txs" : ["0x123abc..." ,"0x456def..." ],"blockNumber" :"0xb63dcd" ,"minTimestamp" :0 ,"maxTimestamp" :1615920932 } ] } 'https://rpc.gigabuilder.io # example response { "jsonrpc" :"2.0" ,"id" :"123" ,"result" :{ "bundleHash" :"0x2228f5d8954ce31dc1601a8ba264dbd401bf1428388ce88238932815c5d6f23f" } }
It's like eth_sendPrivateTransaction but its format is similar to that of eth_sendRawTransaction
# example request curl -X POST -H 'Content-Type: application/json' --data '{ "jsonrpc" :"2.0" ,"id" :1 ,"method" :"eth_sendPrivateRawTransaction" ,"params" : ["0x123abc..." ]} 'https://rpc.gigabuilder.io # example response { "jsonrpc" :"2.0" ,"id" :1 ,"result" :"0x45df1bc3de765927b053ec029fc9d15d6321945b23cac0614eb0b5e61f3a2f2a" }
Method eth_cancelBundle is used to prevent a submitted bundle from being included on-chain
# request format { "jsonrpc" :"2.0" ,"id" :1 ,"method" :"eth_cancelBundle" ,"params" :[ { replacementUuid,// UUIDv4 to uniquely identify submission } ] } # example request curl -X POST -H 'Content-Type: application/json' --data '{ "jsonrpc" :"2.0" ,"id" :1 ,"method" :"eth_cancelBundle" ,"params" :[ { "replacementUuid" :"123e4567-e89b-12d3-a456-426614174000" } ] } 'https://rpc.gigabuilder.io
Method eth_callBundle can be used to simulate a bundle against a specific block number, including simulating a bundle at the top of the next block
# request format { "jsonrpc" :"2.0" ,"id" :1 ,"method" :"eth_callBundle" ,"params" :[ { txs, blockNumber, stateBlockNumber, timestamp,} ] } # example request curl -X POST -H 'Content-Type: application/json' --data '{ "jsonrpc" :"2.0" ,"id" :1 ,"method" :"eth_callBundle" ,"params" :[ { "txs" : ["0x123abc..." ,"0x456def..." ],"blockNumber" :"0xb63dcd" ,"stateBlockNumber" :"latest" ,"timestamp" :1615920932 } ] } 'https://rpc.gigabuilder.io