Funding
Create a funding session.
Changed onCreates a funding session for a destination.
A session is one cross-chain deposit attempt: pick a destination chain, token, and wallet, then set a payment method to mint a deposit address. The response includes a clientSecret used to advance and read the session.
post/v2/funding/sessions
Request
- Base URL: https://api.openfort.io
- URL: https://api.openfort.io/v2/funding/sessions
- Auth: HTTP bearer
Headers
cf-ipcountrystring
Request body
Example request
{
"target": {
"chain": "eip155:8453",
"currency": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"address": "0x0000000000000000000000000000000000000000"
},
"amountUnits": "10000000",
"paymentMethod": {
"type": "evm",
"source": {
"chain": "eip155:137",
"amount": "10000000"
}
}
}Response
Created.
Example response
{
"status": "waiting_payment"
}Changes
- info
endpoint added
- info