Send transactions via API

circle-exclamation

To send transactions, you will need:

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 Developersarrow-up-right

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 default, learn more about Privacy.

hints

String array

If custom is passed as a privacy profile, a list of hints is required. Learn more about hints.

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

Was this helpful?