sdk.evm
EVM blockchain operations module for Ethereum and compatible chains.createPublicClient
Create a public client for a specific chain.Parameters
- chainId (Int) - Chain ID of the network
Returns
- PublicClient - Public client for the specified chain
Example
sendTransaction
Send an EVM transaction.Parameters
- transaction (EthereumTransaction) - Transaction to send
- wallet (BaseWallet) - Wallet to send from
Returns
- String - Transaction hash
Example
signTransaction
Sign a transaction without sending it.Parameters
- transaction (EthereumTransaction) - Transaction to sign
- wallet (BaseWallet) - Wallet to sign with
Returns
- String - Signed transaction
Example
writeContract
Write to a smart contract.Parameters
- wallet (BaseWallet) - Wallet to send from
- input (WriteContractInput) - Contract call input
Returns
- String - Transaction hash
Example
sdk.solana
Solana blockchain operations module.createConnection
Create a connection to Solana.Returns
- SolanaConnection - Connection to Solana network
Example
createSigner
Create a signer for a Solana wallet.Parameters
- wallet (BaseWallet) - Solana wallet to create signer for
Returns
- SolanaSigner - Signer for the wallet
Example
SolanaSigner
Signer for Solana operations.signMessage
Sign a message.signEncodedTransaction
Sign a base64-encoded transaction.signAndSendEncodedTransaction
Sign and send a base64-encoded transaction.Example
sdk.networks
Available blockchain networks.evm
Get available EVM networks.Example
solana
Get available Solana networks.Example
EthereumTransaction
Transaction object for EVM chains.Properties
| Property | Type | Description |
|---|---|---|
to | String | Recipient address |
value | Int | Amount in Wei |
gasLimit | Int | Gas limit |
maxFeePerGas | Int | Maximum fee per gas |
maxPriorityFeePerGas | Int | Priority fee per gas |
data | String? | Contract call data (optional) |
WriteContractInput
Input for smart contract interactions.Properties
| Property | Type | Description |
|---|---|---|
contractAddress | String | Contract address |
functionName | String | Function to call |
args | [Any] | Function arguments |
abi | String | Contract ABI JSON |