EVM Endpoints

Complete API reference for EVM-compatible chains including Ethereum, Base, and BNB Chain.


Supported Chains

ChainIdentifierNative Token
EthereumethETH
BasebaseETH
BNB ChainbscBNB

Quotes

Get price quotes for token swaps without executing transactions.

Get Buy Quote

Get a price quote for buying tokens with native currency.

Endpoint: /evm/buy/quote

ParameterTypeRequiredDescription
chainstringYesChain identifier: eth, base, or bsc
tokenstringYesToken contract address
swapModestringYesExactIn (specify input) or ExactOut (specify output)
amountInstringConditionalAmount of native currency in wei. Required for ExactIn
amountOutstringConditionalAmount of tokens to receive. Required for ExactOut
walletstringYesWallet address for the quote

Example:

typescript
socket.emit("/evm/buy/quote", {
  chain: "eth",
  token: "0x6982508145454Ce325dDbE47a25d4ec3d2311933",
  swapMode: "ExactIn",
  amountIn: "1000000000000000000", // 1 ETH
  wallet: "0x10a64c6d7f12c47b7c66c5b4e20e72bc1fcd5d9e",
});

Response:

json
{
  "success": true,
  "result": {
    "chain": "eth",
    "isBuy": true,
    "token": "0x6982508145454Ce325dDbE47a25d4ec3d2311933",
    "swapMode": "ExactIn",
    "price": 0.00000234,
    "priceImpact": 0.0012,
    "amountIn": "1000000000000000000",
    "expectedAmountOut": "427350427350427350427350"
  }
}

Get Sell Quote

Get a price quote for selling tokens for native currency.

Endpoint: /evm/sell/quote

ParameterTypeRequiredDescription
chainstringYesChain identifier
tokenstringYesToken contract address
swapModestringYesExactIn or ExactOut
amountInstringConditionalAmount of tokens to sell. Required for ExactIn
walletstringYesWallet address

Transactions

Build unsigned transactions for token swaps.

Get Buy Transaction

Build an unsigned transaction for buying tokens.

Endpoint: /evm/buy/transaction

ParameterTypeRequiredDescription
chainstringYesChain identifier
tokenstringYesToken contract address
swapModestringYesExactIn or ExactOut
amountInstringYesAmount of native currency in wei
walletstringYesWallet address
slippageBpsnumberNoSlippage tolerance in basis points (default: 100 = 1%)
feeBpsnumberNoFee in basis points (0-175)
feeRecipientstringNoWallet to receive fees
sendRoutestringNoPublic, Private, or Both for MEV protection

Example:

typescript
socket.emit("/evm/buy/transaction", {
  chain: "eth",
  token: "0x6982508145454Ce325dDbE47a25d4ec3d2311933",
  swapMode: "ExactIn",
  amountIn: "1000000000000000000",
  wallet: "0x10a64c6d7f12c47b7c66c5b4e20e72bc1fcd5d9e",
  slippageBps: 100,
  sendRoute: "Private",
});

Get Sell Transaction

Endpoint: /evm/sell/transaction

Same parameters as buy transaction. May require a permit for V3 pools.

Get Approve Transaction

Build a transaction to approve token spending.

Endpoint: /evm/approve/transaction

ParameterTypeRequiredDescription
chainstringYesChain identifier
tokenstringYesToken contract address
walletstringYesWallet granting approval
spenderstringYesContract address to approve

Transfers

Build transactions for native and token transfers.

Native Transfer

Transfer ETH/BNB to another address.

Endpoint: /evm/transfer/transaction

ParameterTypeRequiredDescription
chainstringYesChain identifier
recipientstringYesRecipient address
amountstringYesAmount in wei
walletstringYesSender address

Token Transfer

Transfer ERC-20 tokens.

Endpoint: /evm/transfer/token/transaction

ParameterTypeRequiredDescription
chainstringYesChain identifier
tokenstringYesToken contract address
recipientstringYesRecipient address
amountstringYesAmount in token decimals
walletstringYesSender address

Wallet

Query wallet balances.

Get Native Balance

Endpoint: /evm/wallet/balance

typescript
socket.emit("/evm/wallet/balance", {
  chain: "eth",
  wallet: "0x10a64c6d7f12c47b7c66c5b4e20e72bc1fcd5d9e",
});

Get Token Balance

Endpoint: /evm/wallet/balance/token

typescript
socket.emit("/evm/wallet/balance/token", {
  chain: "eth",
  token: "0x6982508145454Ce325dDbE47a25d4ec3d2311933",
  wallet: "0x10a64c6d7f12c47b7c66c5b4e20e72bc1fcd5d9e",
});

Token Information

Get Token Metadata

Endpoint: /evm/token/meta

Returns name, symbol, decimals, and total supply.

Get Token Report

Endpoint: /evm/token/report

Returns comprehensive token analysis:

  • Basic metadata (name, symbol, decimals)
  • Liquidity information
  • Buy/sell taxes
  • Transfer limits
  • Market cap and volume

Send Transaction

Broadcast signed transactions to the network.

Endpoint: /evm/send-transaction

⚠️ Warning: This endpoint sends real transactions to the blockchain.

ParameterTypeRequiredDescription
chainstringYesChain identifier
signedTransactionsstring[]YesArray of signed transaction hex strings
simulateBeforeSendbooleanNoSimulate before sending (default: true)

Next Steps