added
Optimism Chain Added
September 27th, 2024 by Abdullah Baig
The Optimism chain has been added to the supported blockchains in Wallet-API. Now you can create and manage wallets, sign messages, and read contracts on the Optimism chain.
Optimism Added to Wallet API
- You can now create and manage wallets on the Optimism blockchain, expanding the range of supported blockchains.
- The sandbox works on the Optimism Sepolia Testnet.
- Ability to send and receive funds to/from Optimism wallets directly through the Wallet API, enabling seamless integration with applications using these blockchains.
- Transfer native tokens, ERC20 tokens, and NFTs on Optimism.
- Execute contract calls on Optimism.
- Sign EIP712 and generic messages on Optimism.
- Retrieve the current gas fee.
- Read contracts.
Get Supported Chains
Request: reference
GET https://api-wallet-sandbox.venly.io/api/chains
Response Body
As you can see, we now support Optimism.
{
"success": true,
"result": [
"AETERNITY",
"ARBITRUM",
"AVAC",
"BITCOIN",
"BSC",
"ETHEREUM",
"GOCHAIN",
"LITECOIN",
"VECHAIN",
"MATIC",
"NEO",
"HEDERA",
"IMX",
"BASE",
"XPLA",
"OPTIMISM"
]
}
Create Optimism Wallet
Request: reference
POST https://api-wallet-sandbox.venly.io/api/wallets
Parameter | Param Type | Value | Description |
---|---|---|---|
Signing-Method | Header | id:value | id : This is the ID of the signing methodvalue : This is the value of the signing method |
Request Body
{
"secretType": "OPTIMISM",
"description": "Optimism Wallet",
"userId": "8afbf977-1ad2-48c9-b4d4-9beb3c4911e4"
}
Response Body
{
"success": true,
"result": {
"id": "c1403bd7-c21e-402b-9208-85ef130b3a8b",
"address": "0x3782630a0e81ab7e3e63b9bC03853a00A71d2209",
"walletType": "API_WALLET",
"secretType": "OPTIMISM",
"createdAt": "2024-09-26T19:34:21.761430234",
"archived": false,
"description": "Optimism Wallet",
"primary": false,
"hasCustomPin": false,
"userId": "8afbf977-1ad2-48c9-b4d4-9beb3c4911e4",
"custodial": false,
"balance": {
"available": true,
"secretType": "OPTIMISM",
"balance": 0,
"gasBalance": 0,
"symbol": "ETH",
"gasSymbol": "ETH",
"rawBalance": "0",
"rawGasBalance": "0",
"decimals": 18
}
}
}