portal.delegations API. This enables approving token spending, revoking approvals, checking delegation status, and transferring tokens as a delegate on both EVM and Solana chains.
Overview
The delegations functionality allows you to:- Approve other addresses to spend tokens on behalf of your wallet
- Revoke existing delegations to remove spending permissions
- Check status of active delegations and balances
- Transfer tokens as a delegate from another address
Prerequisites
Before using delegation operations, ensure you have:- A properly initialized Portal client
- An active wallet with tokens on the target network (see Create a wallet)
- Understanding of token delegations concepts
Approving Delegations
Useapprove to grant another address permission to spend tokens on your behalf. This method works for both EVM and Solana chains.
EVM Approval
Solana Approval
Checking Delegation Status
UsegetStatus to check current delegations and token balances for a specific delegate address.
EVM Status Check
Solana Status Check
Revoking Delegations
Userevoke to remove spending permissions from a delegate address.
EVM Revoke
Solana Revoke
Transferring as a Delegate
UsetransferFrom to transfer tokens from another address that has delegated spending permission to you.
EVM Transfer From
Solana Transfer From
Delegation Roles:
fromAddress is the token owner who approved the delegation. Your wallet (the delegate) signs the transaction to transfer tokens from the owner to the toAddress recipient.Supported Networks
Delegations work on all Portal-supported EVM and Solana chains:- EVM: Ethereum, Polygon, Base, Arbitrum, Optimism, Monad, and all other EVM-compatible chains
- Solana: Solana Mainnet and Devnet
Next Steps
- Learn about signing transactions
- Explore Portal API methods
- Review delegation concepts
- Check out wallet lifecycle management