Skip to main content
This guide walks through crafting a Send transaction using the /send/v1/craft-send endpoint. You will generate an invite code, derive a recipient keypair, POST to the endpoint, then sign with both sender and recipient keypairs before submitting.

Overview

1
Create invite code.
2
From utils, derive the secret key - a deterministic 64-byte Solana secret key (32 bytes private + 32 bytes public key).
3
Create Solana Keypair instance from the secret key.
4
Post request to get Send transaction.
5
Sign with both sender and recipient keypair, then send transaction and wait for confirmation.

Imports

Create Invite Code

Craft Send

API PARAMS
  • The amount is in its atomic value before applying decimals, e.g. 1 USDC is 1_000_000.
  • The mint defaults to SOL if not provided, if provided it can be any token mint.
SIGNING AND SENDING
  • After getting the transaction, you need to sign with both sender and recipient keypair.
  • You can send the transaction to the network via any method.