Prepare Transactions
Description: This endpoint prepares unsigned transactions for the method selected in the method field. For exact required and optional body fields, use the method-specific endpoints under Create Transaction.
Headers:
x-api-key:YOUR_API_KEYfor API-key auth, orX-Paymentfor x402 retries on eligible agentic methodsContent-Type:application/json
Common Request Body Parameters:
method(string, required): Operation to prepare.chainId(string, required): Blockchain network identifier. Hex format is recommended, for exampleaa36a7for Sepolia.signerAddress(string, conditionally required): Wallet address that signs the prepared transaction. Most methods require it;newInvestandclaimTokenscan useinvestorAddressas the signer.gasLimit(string, optional): Gas limit override. If omitted, the API estimates gas automatically.privateRpcUrl(string, optional): Private RPC URL override.nonce(integer, optional): Nonce override. If omitted, the API reads the pending nonce from the RPC.
Common Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | string | Yes | Blockchain network identifier (hex format) |
method | string | Yes | Transaction method type |
signerAddress | string | Conditional | Address that will sign the transaction. Most methods require it; newInvest and claimTokens can use investorAddress as the signer. |
Supported Methods
| Method | Description |
|---|---|
newTokenization | Create a new tokenized asset. |
mintToken | Mint tokens to one or more investors. |
whitelist | Whitelist or blacklist investor wallets. |
burnToken | Burn tokens from the signer balance. |
transferFrom | Transfer tokens from an approved owner address. |
transferTo | Transfer tokens from the signer address. |
approve | Approve token spending. |
dividendDistribution | Distribute payment-token dividends. |
newSto | Create a Security Token Offering. |
newInvest | Prepare an STO investment. |
claimTokens | Claim tokens from a successful STO. |
closeOffer | Close an active STO. |
Response Format
The response includes the transaction details, metadata, and a unique transaction ID that must be saved for use with the/send-transactions endpoint.
Important: The txId is NOT a blockchain transaction hash - it’s an internal identifier used to link the prepared transactions with the send operation.
Response Fields
| Field | Type | Description |
|---|---|---|
transactions | array | Array of unsigned transaction objects ready for signing |
info | object | Metadata about the operation including emails and token symbol |
txId | string | Unique identifier for this transaction batch (required for /send-transactions) |
- Sign each transaction in the
transactionsarray - Submit the signed transactions along with the
txIdto/send-transactions
Authorizations
Body
The operation to be performed. Includes standard tokenization methods and x402-eligible agentic methods. Agentic methods can also be addressed through /x402/... facade endpoints, where the method is derived from the path. newTokenizedAgent remains a legacy alias for direct /prepare-transactions calls and is not listed in x402scan discovery.
newTokenization, newSto, newInvest, claimTokens, mintToken, whitelist, approve, burnToken, transferFrom, transferTo, dividendDistribution, closeOffer, newTokenizedAgent, agentRegister, agentSetURI, agentSetMetadata, agentSetWallet, agentGiveFeedback, agentRevokeFeedback, agentAppendFeedbackResponse, agentCreateToken, agentMintToken, agentBurnToken, agentTransferToken, agentTransferFromToken, agentApproveToken "newTokenization"
Required. Blockchain network identifier. Hex format is recommended, for example Sepolia aa36a7.
"aa36a7"
Optional. Wallet address that will sign the prepared transaction. If omitted, the API uses investorAddress for this method.
"0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8b"
Required. Token symbol. Must be 2 to 5 uppercase letters or numbers.
"EXMPL"
Optional. Token type. Defaults to EQUITY when omitted.
EQUITY, DEBT, BILL_FACTORING, ICO, STABLECOIN, REVENUE_SHARE, RWA_TOKEN, PROFIT_SHARING "EQUITY"
Optional. Tokenizer email. Required for newTokenization, newSto, and closeOffer.
"tokenizer@example.com"
Required. Accepted payment token symbol.
"USDT"
Optional. Amount used by approve, burnToken, transferFrom, transferTo, and dividendDistribution.
"100"
Required. STO end date.
"2026-12-31T23:59:59.000Z"
Optional. Source address required by transferFrom.
^0x[a-fA-F0-9]{40}$"0x1111111111111111111111111111111111111111"
Optional. Gas limit override. If omitted, the API estimates gas automatically.
"2000000"
Optional. Initial holders paired by index with preMints. Provide walletAddress directly, or email when a DFNS wallet can be resolved.
[
{
"walletAddress": "0x1111111111111111111111111111111111111111"
}
]Required. Payment-token amount to invest.
"1000"
Optional. Investor wallet address. Required for newInvest and claimTokens; optional for approve payment-token owner scope.
^0x[a-fA-F0-9]{40}$"0x1111111111111111111111111111111111111111"
Optional. Investor email. Required for newInvest, claimTokens, burnToken, and each whitelist/mint recipient.
"investor@example.com"
Required. Maximum investment amount.
"10000"
Required. Maximum raise amount in USD.
"100000"
Required. Minimum investment amount.
"100"
Required. Minimum raise amount in USD.
"10000"
Required. Name of the tokenized asset.
"Example Token"
Optional. Default profile data used when creating missing investor users.
Required. Name of the STO offering.
"Series A"
Optional. Payment token symbol used by newInvest. If omitted, the chain default payment token is used.
"USDT"
Optional. Pre-mint amounts. If provided, initialHolders must also be provided with the same length.
[{ "amount": "1000" }]Optional. Private RPC URL override. If omitted, the API uses the configured RPC for chainId.
"https://rpc.example.com"
Optional. Spender address required by approve.
^0x[a-fA-F0-9]{40}$"0x3333333333333333333333333333333333333333"
Required. STO start date.
"2026-09-01T00:00:00.000Z"
Optional. Maximum token supply. Defaults to 0 when omitted.
"1000000"
Optional. Destination address required by transferFrom and transferTo.
^0x[a-fA-F0-9]{40}$"0x2222222222222222222222222222222222222222"
Required. Number of tokens offered in the STO.
"1000"
Optional. Tokenizer wallet address used by tokenization setup flows when provided.
^0x[a-fA-F0-9]{40}$"0x4444444444444444444444444444444444444444"
Optional. Token documentation URL. Defaults to an empty string when omitted.
"https://example.com/token-docs"
Required. Users to mint tokens to.
1[
{
"investorEmail": "investor@example.com",
"investorAddress": "0x1111111111111111111111111111111111111111",
"amount": "100",
"needWhitelist": true
}
]Required. Users to whitelist or blacklist.
1[
{
"investorAddress": "0x1111111111111111111111111111111111111111",
"investorEmail": "investor@example.com",
"whitelistStatus": true
}
]Tokenizer owner email used by agentic methods.
"owner@example.com"
Tracking email used by feedback and agent token methods.
"reviewer@example.com"
Agent service descriptors used by agentRegister.
Agent metadata stored in the registration file.
AI model name for agent registration or metadata updates.
"gpt-4o"
AI model provider stored in the agent profile.
"openai"
Internal tokenized agent UUID returned by agentRegister.
On-chain ERC-8004 agent ID.
Metadata key used by agentSetMetadata.
"modelName"
Metadata value used by agentSetMetadata.
Encoding mode for agentSetMetadata.
string, json, hex Agent wallet assigned by agentSetWallet.
Hex signature used by agentSetWallet.
Signature deadline used by agentSetWallet.
Feedback index used by reputation methods.
Reviewer/client address used by agentAppendFeedbackResponse.
Off-chain response URI used by agentAppendFeedbackResponse.
Off-chain feedback URI used by agentGiveFeedback.
Optional 32-byte content hash for feedback.
Optional 32-byte content hash for a feedback response.
Operational agent wallet used by agentCreateToken.
Agent token symbol used by agentCreateToken.
"MAT"
Human-readable premint amount used by agentCreateToken.
Agent token decimals. Defaults to 18.
Deployed agent token address used by agentMintToken and agentBurnToken.
Whether the registered agent declares x402 support in its profile.
Whether the registered agent should appear active.
Optional. Nonce override. If omitted, the API reads the pending nonce from the RPC.
12
Optional. Payment token contract address override. If omitted, the chain default payment token is used.
^0x[a-fA-F0-9]{40}$"0x5555555555555555555555555555555555555555"
Response
Successful response
Array of unsigned transaction objects ready for signing
Unique identifier for this transaction batch (required for /send-transactions). This is NOT a blockchain transaction hash.
"0x46adea7bdf49c576a760102e0d6bc9ecd650b3998588cd3d7f576a7973426aad"
Metadata about the operation