Skip to main content
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>',
    fromWalletType: 'master',
    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));
{
  "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"
}

Documentation Index

Fetch the complete documentation index at: https://docs.prudra.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your Prudra API key. Get one at dashboard.prudra.com/settings/api-keys

Body

application/json
fromWalletId
string
required
fromWalletType
enum<string>
required
Available options:
master,
child
amount
string
required
Example:

"100.00"

token
string
required
Example:

"USDC"

chain
string
required
bankAccountId
string
reference
string

Response

201 - application/json

Withdrawal initiated

id
string
required
Example:

"wdr_abc123"

status
string
required
Example:

"pending_conversion"

txHash
string
required
Example:

"0xabc..."

amount
string
required
Example:

"100.00"

token
string
required
Example:

"USDC"

chain
string
required
Example:

"base"

estimatedDays
integer
required
Example:

3

reference
string
required
Example:

"WD-1234567890"

createdAt
string<date-time>