Fund your Wallet
Now that you have a wallet, the next step is to get test tokens for it. You can fund your wallet usingportal.receiveTestnetAsset. If you are looking for a greater variety of test tokens, we recommend exploring our faucets page.
Sending Tokens from your Wallet
Portal provides two ways to send transactions:portal.sendAsset()- A simple method for sending tokens from your Portal wallet.portal.provider.request()- Direct access to the underlying web3 provider for custom transactions. (You can learn more about this method here.)
portal.sendAsset() as shown in the examples below.
Submitting an EVM Transaction
Submitting a Solana Transaction
You will need
SOL to submit a Solana transaction, which is not currently supported by portal.receiveTestnetAsset. You can find a faucet to get test SOL tokens here.Advanced: Controlling Gas Sponsorship
If your client is using Account Abstraction, you can control whether Portal sponsors the gas fees for each transaction using thesponsorGas parameter in SendAssetParams.
Example: User Pays Gas
sponsorGas: false, the Portal client will pay for the transaction fees instead of having them sponsored. This is useful for testing or when you want users to pay for specific operations.
Omitting
sponsorGas or setting it to true produces the same behavior - both will sponsor gas if your environment is configured for AA on that chain. Only sponsorGas: false changes the default behavior to disable sponsorship.