Skip to main content
POST
Price a transfer between the client's own accounts

Authorizations

Authorization
string
header
required

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

Headers

X-Hevn-Account
string | null

The client account to act for, as a cl_… id. Omit it to act as yourself.

Example:

"cl_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41"

x-api-key
string | null

Body

application/json
sourceAccount
enum<string>
required

Account the money leaves.

Available options:
USDC,
EURC,
FDIC_USD
destinationAccount
enum<string>
required

Account the money lands on.

Available options:
USDC,
EURC,
FDIC_USD
amount
string | null

Exact amount to debit from the source account.

Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
Example:

"500.00"

amountTo
string | null

Exact amount the destination account should receive.

Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
Example:

"500.00"

Response

Successful Response

sourceAccount
enum<string>
required

Account the money would leave.

Available options:
USDC,
EURC,
FDIC_USD
destinationAccount
enum<string>
required

Account the money would land on.

Available options:
USDC,
EURC,
FDIC_USD
quote
SwapQuoteView · object
required

Best price available for this move right now.