Fiat
Initiate an onramp transaction
Changed onTriggers an onramp to the specified recipient blockchain address, returns the bank deposit instructions
post/v1/users/{user_id}/fiat/onramp
Request
- Base URLhttps://api.privy.io
- URLhttps://api.privy.io/v1/users/{user_id}/fiat/onramp
- AuthHTTP basic
Path parameters
user_idstring required
The ID of the user initiating the onramp
Headers
privy-app-idstring required
ID of your Privy app.
Request body
Example request
{
"amount": "100.00",
"provider": "bridge-sandbox",
"source": {
"currency": "usd",
"payment_rail": "ach_push"
},
"destination": {
"currency": "usdc",
"chain": "base",
"to_address": "0x38Bc05d7b69F63D05337829fA5Dc4896F179B5fA"
}
}Response
Bank deposit instructions for the onramp
Example response
{
"id": "3a61a69a-1f20-4113-85f5-997078166729",
"status": "awaiting_funds",
"deposit_instructions": {
"payment_rail": "ach_push",
"currency": "usd",
"amount": "100.0",
"deposit_message": "BRGFU2Z9TJPJXCS7ZZK2",
"bank_account_number": "11223344556677",
"bank_routing_number": "123456789",
"bank_beneficiary_name": "Bridge Ventures Inc",
"bank_beneficiary_address": "1234 Elm St, Springfield, IL 12345",
"bank_name": "Bank of Nowhere",
"bank_address": "1800 North Pole St., Orlando, FL 32801"
}
}Changes
- warning
added the new
faster_paymentsenum value to the//response property for the response status - warning
added the new
fednowenum value to the//response property for the response status - info
added the new
faster_paymentsenum value to the request property/ - info
added the new
fednowenum value to the request property/
- warning