You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For simulateBundle you have to pass a struct as input that reflects
typeSBundlestruct {
BlockNumber*big.Int`json:"blockNumber,omitempty"`// if BlockNumber is set it must match DecryptionCondition!MaxBlock*big.Int`json:"maxBlock,omitempty"`TxsTransactions`json:"txs"`RevertingHashes []common.Hash`json:"revertingHashes,omitempty"`RefundPercent*int`json:"percent,omitempty"`
}
For submitBundleJsonRPC you have to pass json encoded string:
[{
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, in seconds since the unix epoch
maxTimestamp,// (Optional) Number, the maximum timestamp for which this bundle is valid, in seconds since the unix epoch
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}]
I understand that these work differently (simulate does local simulation via buildBlock & submitBundle just does signing and remote call). Still this could be a source of confusion and would help to have similar input for both of these precompiles.
The text was updated successfully, but these errors were encountered:
For
simulateBundle
you have to pass a struct as input that reflectsFor
submitBundleJsonRPC
you have to pass json encoded string:I understand that these work differently (simulate does local simulation via buildBlock & submitBundle just does signing and remote call). Still this could be a source of confusion and would help to have similar input for both of these precompiles.
The text was updated successfully, but these errors were encountered: