Send transactions via API
This method is for advanced users only. Your dashboard displays an RPC that accepts transactions into the private pool easily. We recommend using the eth_sendRawTransaction RPC method unless you want to customize the lifecycle of the transaction or the auction.
To send transactions, you will need:
The transactions
An API key. Create an account on the Developer Dashboard for free and get your API key.
Once a transaction is received, Merkle will run an auction with searchers. If no bid is made, your transaction will be released to trusted builders, ensuring it remains private and secure until block inclusion.
Send a new transaction
POST
https://mempool.merkle.io/transactions
Headers
Name | Type | Description |
---|---|---|
X-MBS-Key* | String | Merkle API key. Get one at Merkle Developers |
Request Body
Name | Type | Description |
---|---|---|
transactions* | String array | List of transactions to send to the private pool. Each transaction will be processed independently (not as a bundle). |
privacy | String | Privacy profile of the transaction. By default the value is |
hints | String array | If |
bundle_types | String array | Types of bids allowed on auctions. By default, only backruns are allowed. |
prevent_reverts | Bool | Prevent this transaction from reverting onchain. This transaction will not be mined if it reverts. Default: false |
max_block_number | Number | The maximum block number this transaction should be broadcasted until. Afterwards the transaction will be dropped and considered "expired". |
Here are examples on how to send transactions in several languages:
Javascript
Go
Last updated