Skip to main content
POST
/
v1
/
auth
/
erc-4361
/
address_book
/
get_challenge
Get SIWE Address Book Challenge
curl --request POST \
  --url https://api.ondoperps.xyz/v1/auth/erc-4361/address_book/get_challenge \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "walletAddress": "0x505D602729B932959935C1efd350Cea74527d3D1",
  "chainId": "43114",
  "withdrawalAddress": "0x054A94b753CBf65D1Bc484F6D41897b48251fbfF"
}
'
{
  "success": true,
  "result": {
    "id": "chg_ab12cd34ef56",
    "message": "Sign this message to add withdrawal address 0x054A94b753CBf65D1Bc484F6D41897b48251fbfF to your address book."
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
walletAddress
string
required

The wallet address requesting to add a withdrawal address

Example:

"0x505D602729B932959935C1efd350Cea74527d3D1"

chainId
enum<string>
required

EVM chain ID (1=Ethereum, 43114=Avalanche)

Available options:
1,
43114
Example:

"43114"

withdrawalAddress
string
required

The address to add to the withdrawal address book

Example:

"0x054A94b753CBf65D1Bc484F6D41897b48251fbfF"

Response

Challenge for signing

success
boolean
required

Whether the request was successful

Example:

true

error
string

Error message, present only on failure

Example:

""

error_code
string

Semantic error code. See each endpoint's error responses for the specific codes it can return.

deprecated
string

Deprecation notice, if applicable

Example:

""

result
object