Custodial wallets support transferring assets that are supported by the custodian. To transfer these assets, applications can use the same interface as non-custodial wallets through Privy’s server-side SDKs or REST API.
All transactions from custodial wallets are executed server-side.
Transactions from custodial wallets are gasless by default, customers do not need to enable gas
sponsorship or set sponsor: true for gas to be sponsored - Like non-custodial wallets, custodial
wallets with an owner or additional_signers require an authorization
signature for transaction requests.
NodeJS
REST API
Use the sendTransaction method from the custodial wallets interface to send transactions. This example shows sending USDC on Base.
The hash for the broadcasted transaction. This will be an empty string since the transaction must go through custodian screening first before being broadcasted.
Check out the API reference for more details. Note that the transaction hash will be an empty string since the transaction must go through custodian screening first before being broadcasted.