Webhook
Prosper debe implementar una URL para recibir vía webhook, withdraw.
Firma del encabezado HTTP - header Signature
Construye un payload uniendo con un punto las siguientes tres (3 ) variables:
timestamp // Nonce
now() = 1751315390PROSPER_HOST
Params
Base 64 encoded signature: timestamp.PROSPER_HOST.body
using the SANDBOX_SIGNING_KEY
Signature: t=timestamp, s=<base64 encoded signature>
Eventos:
enum StatusEnum {
completed = 'completed',
pending = 'pending',
failed = 'failed',
}
enum TransactionEnum {
DEPOSIT = 'deposit',
WITHDRAWAL = 'withdrawal',
}
Cuerpo de Retiro
const params = {
id: txId,
eventType: TransactionEnum.WITHDRAWAL,
userAddress, // Stellar Wallet Address Public Key
date: txDate, // Date of the transaction
amount, // Amount of the transaction
AssetCode, // 'USDC'
status, // Status of the transaction
failReason?: failReason | null,
};
Last updated