Skip to main content
POST
/
api
/
v1
/
depositAddresses
/
solana
Generate Solana deposit address
curl --request POST \
  --url https://deposit-addresses.eco.com/api/v1/depositAddresses/solana \
  --header 'Content-Type: application/json' \
  --data '
{
  "chainId": 2,
  "solanaAddress": "2ECrxAiyVBszAjok5isDdTJu4kwwhq9d7kgJqDvEStMq",
  "depositor": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
}
'
{
  "data": {
    "chainId": 123,
    "evmDepositAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
    "solanaAddress": "<string>",
    "depositor": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
    "factoryAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb",
    "isDeployed": true,
    "lastCheckedBalance": "<string>",
    "deploymentTxHash": "<string>",
    "deploymentBlockNumber": "<string>",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://eco.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
chainId
integer
required

Source chain. Currently Base (8453).

Required range: x >= 1
solanaAddress
string
required

base58, 32-44 chars

Pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
Example:

"2ECrxAiyVBszAjok5isDdTJu4kwwhq9d7kgJqDvEStMq"

depositor
string
required

Authorized for refunds if the intent expires

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"

Response

201 - application/json

Deposit address (deterministic — same inputs always return the same address)

data
object