Request a withdrawal to bank
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fromWalletId: '<string>',
amount: '100.00',
token: 'USDC',
chain: '<string>',
bankAccountId: '<string>',
reference: '<string>'
})
};
fetch('https://api.prudra.dev/wallet-infra/withdraw', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.prudra.dev/wallet-infra/withdraw"
payload = {
"fromWalletId": "<string>",
"amount": "100.00",
"token": "USDC",
"chain": "<string>",
"bankAccountId": "<string>",
"reference": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api.prudra.dev/wallet-infra/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fromWalletId": "<string>",
"amount": "100.00",
"token": "USDC",
"chain": "<string>",
"bankAccountId": "<string>",
"reference": "<string>"
}
'{
"id": "wdr_abc123",
"status": "pending_conversion",
"txHash": "0xabc...",
"amount": "100.00",
"token": "USDC",
"chain": "base",
"estimatedDays": 3,
"reference": "WD-1234567890",
"createdAt": "2023-11-07T05:31:56Z"
}Withdrawals
Request a withdrawal to bank
Initiates a withdrawal from a managed wallet toward a registered bank account. Converts on-chain balance to fiat per your integration settings.
POST
/
wallet-infra
/
withdraw
Request a withdrawal to bank
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fromWalletId: '<string>',
amount: '100.00',
token: 'USDC',
chain: '<string>',
bankAccountId: '<string>',
reference: '<string>'
})
};
fetch('https://api.prudra.dev/wallet-infra/withdraw', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.prudra.dev/wallet-infra/withdraw"
payload = {
"fromWalletId": "<string>",
"amount": "100.00",
"token": "USDC",
"chain": "<string>",
"bankAccountId": "<string>",
"reference": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)curl --request POST \
--url https://api.prudra.dev/wallet-infra/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fromWalletId": "<string>",
"amount": "100.00",
"token": "USDC",
"chain": "<string>",
"bankAccountId": "<string>",
"reference": "<string>"
}
'{
"id": "wdr_abc123",
"status": "pending_conversion",
"txHash": "0xabc...",
"amount": "100.00",
"token": "USDC",
"chain": "base",
"estimatedDays": 3,
"reference": "WD-1234567890",
"createdAt": "2023-11-07T05:31:56Z"
}Authorizations
Your Prudra API key. Get one at dashboard.prudra.com/settings/api-keys
Body
application/json
Response
201 - application/json
Withdrawal initiated
Example:
"wdr_abc123"
Example:
"pending_conversion"
Example:
"0xabc..."
Example:
"100.00"
Example:
"USDC"
Example:
"base"
Example:
3
Example:
"WD-1234567890"

