added

Adding support for Solana

The Solana chain has been added to the supported blockchains in Wallet-API and Widget. You can now create and manage wallets, execute transactions, and read programs on the Solana chain.

Solana Added to Wallet API & Widget

  • You can now create and manage wallets on the Solana blockchain, expanding the range of supported blockchains.
  • The sandbox works on the Solana Testnet.
  • Ability to send and receive funds to/from Solana wallets directly through the Wallet API, enabling seamless integration with applications using these blockchains.
  • Transfer native SOL tokens, ERC20 tokens, and NFTs on Solana.
  • Fetch the balance of native tokens, ERC20 tokens, and NFTs in your Solana wallet.
  • Execute program calls on Solana.
  • Sign generic messages on Solana.
  • Retrieve the current gas fee.
  • Read programs.
  • Import Solana wallets.

Get Supported Chains

Request: reference

GET https://api-wallet-sandbox.venly.io/api/chains

Response Body

👍

As you can see, we now support Solana.

{
    "success": true,
    "result": [
        "AETERNITY",
        "ARBITRUM",
        "AVAC",
        "BITCOIN",
        "BSC",
        "ETHEREUM",
        "GOCHAIN",
        "LITECOIN",
        "VECHAIN",
        "MATIC",
        "NEO",
        "HEDERA",
        "IMX",
        "BASE",
        "XPLA",
        "OPTIMISM",
        "SOLANA"
    ]
}

Create Solana Wallet

Request: reference

POST https://api-wallet-sandbox.venly.io/api/wallets
ParameterParam TypeValueDescription
Signing-MethodHeaderid:valueid: This is the ID of the signing method
value: This is the value of the signing method

Request Body

{
    "secretType": "SOLANA",
    "description": "Solana Wallet",
    "userId": "eda7f8f6-2a70-4fcb-8a1f-387a88ae44d0"
}

Response Body

{
    "success": true,
    "result": {
        "id": "1a08ea1c-10b1-41c4-9b63-82ce8c9b9511",
        "address": "5zZWb31ytB6nbVKf3FZsDSY8heQ9QoEBnYM2CZq9nRW7",
        "walletType": "API_WALLET",
        "secretType": "SOLANA",
        "createdAt": "2024-11-27T11:55:33.372903708",
        "archived": false,
        "description": "Solana Wallet",
        "primary": false,
        "hasCustomPin": false,
        "userId": "eda7f8f6-2a70-4fcb-8a1f-387a88ae44d0",
        "custodial": false,
        "balance": {
            "available": true,
            "secretType": "SOLANA",
            "balance": 0,
            "gasBalance": 0,
            "symbol": "SOL",
            "gasSymbol": "SOL",
            "rawBalance": "0",
            "rawGasBalance": "0",
            "decimals": 18
        }
    }
}