Transfer

transfer Channel

Monitor deposits and withdrawals for an account.

Subscribe

ParameterRequiredDescription
accountYesEOA or Smart account address (42 characters with 0x prefix)
symbolNoToken symbol: "ETH", "BTC", "USDC", "ARB"
typeNo"deposit" or "withdrawal"
{
  "channel": "transfer",
  "query": {
    "account": "0x1234567890abcdef1234567890abcdef12345678",
    "symbol": "USDC",
    "type": "deposit"
  }
}

Event: deposit

{
  "kind": "event",
  "type": "deposit",
  "timestamp_ms": 1677721600000,
  "data": {
    "margin_account_id": "550e8400-e29b-41d4-a716-446655440000",
    "smart_account_address": "0x1234567890abcdef1234567890abcdef12345678",
    "amount": 10000,
    "action_seq": "abc123...",
    "action": "deposit",
    "symbol": "USDC"
  },
  "subscription": {
    "channel": "transfer",
    "query": {
      "account": "0x1234567890abcdef1234567890abcdef12345678"
    }
  }
}

Event: withdrawal

{
  "kind": "event",
  "type": "withdrawal",
  "timestamp_ms": 1677721600000,
  "data": {
    "margin_account_id": "550e8400-e29b-41d4-a716-446655440000",
    "smart_account_address": "0x1234567890abcdef1234567890abcdef12345678",
    "amount": 5000,
    "action_seq": "xyz789...",
    "action": "withdrawal",
    "symbol": "USDC"
  },
  "subscription": {
    "channel": "transfer",
    "query": {
      "account": "0x1234567890abcdef1234567890abcdef12345678"
    }
  }
}
FieldTypeDescription
margin_account_idstringMargin account UUID
smart_account_addressstringSmart account Ethereum address
amountnumberTransfer amount
action_seqstringAction sequence identifier
actionstring"deposit" or "withdrawal"
symbolstringToken symbol (e.g., "USDC")