eth_sendRawTransactionConditional
Submits a signed raw transaction that the includes only if the given options hold: the block number and the block timestamp ranges, and the storage of the known accounts. Returns the transaction hash.
Source: go-ethereum 30456d2 arbitrum/conditionaltx.go:25
Generated from Nitro v3.12.2.
$NITRO_RPC_URL$NITRO_RPC_URL is the RPC URL of your Nitro node.
Params
Result
Prop
Type
{ "jsonrpc": "2.0", "id": 1, "result": "0x0000000000000000000000000000000000000000000000000000000000000000"}Go definition
// go-ethereum 30456d2 arbitrum/conditionaltx.go:25func (s *ArbTransactionAPI) SendRawTransactionConditional(ctx context.Context, input hexutil.Bytes, options *arbitrum_types.ConditionalOptions) (common.Hash, error)// go-ethereum 30456d2 arbitrum_types/txoptions.go:71type ConditionalOptions struct { KnownAccounts map[common.Address]RootHashOrSlots `json:"knownAccounts"` BlockNumberMin *math.HexOrDecimal64 `json:"blockNumberMin,omitempty"` BlockNumberMax *math.HexOrDecimal64 `json:"blockNumberMax,omitempty"` TimestampMin *math.HexOrDecimal64 `json:"timestampMin,omitempty"` TimestampMax *math.HexOrDecimal64 `json:"timestampMax,omitempty"`}// go-ethereum 30456d2 arbitrum_types/txoptions.go:49type RootHashOrSlots struct { RootHash *common.Hash SlotValue map[common.Hash]common.Hash}curl -X POST $NITRO_RPC_URL \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "eth_sendRawTransactionConditional", "params": [ "<signed transaction, hex>", { "knownAccounts": {}, "timestampMax": "0x6718f2a0" } ]}'How is this guide?
eth_sendRawTransactionSync
Adds the signed transaction to the transaction pool, waits until it is included in a block, and returns the receipt. Returns an error if the timeout ends first.
daprovider_store
Stores the message until the given timeout and returns the serialized data availability certificate.