This document explains how to use Skip Go API and Client TypeScript Package to construct SVM transactions.
SvmTx
type for the developer to pass to the user for signingSvmTx
to help their users move from/to Solana and other SVM chains./submit
endpoint to avoid dealing with complex retry logic and/or multiple RPC providers for submission reliability. Skip Go API’s /submit
endpoint implements best practices for Solana transactions submission for you!Adapter
object that wraps all major Solana wallets (e.g. Phantom, Backpack, etc…), as well as visual React components for wallet selection. See here for all the supported wallets.
SkipClient
to use a Solana walletgetSVMSigner
method in SkipClient.options
to extract the @solana/wallet-adapter-base
from the user’s connected wallet of choice:
route
, executeRoute
, and the other methods of SkipClient
as you normally would.
The rest of these docs cover the underlying details of the data structures, in case you need them.
SvmTx
Data StructureSvmTx
has 2 fields that the developer needs to understand:
chain_id
: The ID of the chain that this transaction should be submitted totx
: This is the base64 encoded bytes of the transaction you should have the end user sign.SvmTx.tx
tx
SvmTx.tx
.
You just need to have set the getSVMSigner
method in the SkipClientOptions
object in the SkipClient
constructor then use executeRoute
or executeTxs
.