Function Signature
Description
Requests testnet assets for development and testing. This method only works on supported testnet networks.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | String | Yes | The testnet chain ID in CAIP-2 format |
amount | String | Yes | The amount to request |
token | String | Yes | Token symbol (e.g., "NATIVE", "ETH") |
Returns
PortalFundResult - An object containing:
| Property | Type | Description |
|---|---|---|
success | bool | Whether the request was successful |
transactionHash | String? | The transaction hash |
error | String? | Error message if the request failed |
Example
Monad Testnet
Supported Networks
| Network | Chain ID |
|---|---|
| Sepolia | eip155:11155111 |
| Monad Testnet | eip155:10143 |
For other testnet tokens or networks, check the testnet faucets page.
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
FAUCET_ERROR | Failed to request testnet assets |
UNSUPPORTED_NETWORK | The network is not supported |