EVM Operations (sdk.evm)
createPublicClient
Create a public client for interacting with an EVM chain.
Parameters
- chainId (Int): The chain ID (e.g., 1 for Ethereum mainnet, 137 for Polygon)
Returns
- EvmPublicClient: Public client for the chain
Example
getGasPrice
Get the current gas price for a chain.
Returns
- BigInteger: Current gas price in Wei
Example
sendTransaction
Send a transaction on an EVM chain.
Parameters
- transaction (EthereumTransaction): Transaction details
- wallet (BaseWallet): The wallet to send from
Returns
Example
signEthereumTransaction
Sign a transaction without sending it. This is an extension on sdk.wallets, so it requires an import.
Parameters
- walletId (String): The ID of the wallet to sign with
- transaction (EthereumTransaction): Transaction to sign
Returns
- String: Signed transaction
Example
writeContract
Write to a smart contract (call a contract function).
Parameters
- wallet (BaseWallet): The wallet to call from
- input (WriteContractInput): Contract call parameters
Returns
Example
Solana Operations (sdk.solana)
Building Solana transactions and fetching a blockhash use the sol4k library bundled via solana-web3.aar. Signing and sending go through sdk.solana.
createConnection (sol4k)
Create a connection to a Solana network using sol4k.
Example
signMessage
Sign a message with a Solana wallet via the wallets module.
Parameters
- wallet (BaseWallet): The Solana wallet to sign with
- message (String): The message to sign
Returns
Example
signTransaction
Sign a Solana transaction (base64 encoded).
Parameters
- base64Transaction (String): Base64 encoded transaction
- wallet (BaseWallet): The Solana wallet to sign with
Returns
- String: Signed transaction
Example
signAndSendTransaction
Sign and send a Solana transaction.
Parameters
- base64Transaction (String): Base64 encoded transaction
- wallet (BaseWallet): The Solana wallet to sign with
Returns
- String: Transaction signature
Example
Network Management (sdk.networks)
Available Networks
Get lists of available EVM, Solana, SUI, and Bitcoin networks.
Example
Data Types
EthereumTransaction
EstimatedFeesPerGas
GenericNetwork
Last modified on September 29, 2026