Skip to main content
POST
Register Wallet

SDK Usage

Generate Proof

Use the SDK’s proveOwnership helper to generate a WalletProof locally. This is a pure cryptographic operation with no network call.

Register

Send the proof to the API to register the wallet.

Connect with Wallets (one step)

Convenience method that registers wallets and connects to the stream in one call.

Authorizations

x-api-key
string
header
required

Your LaserSell API key. Obtain one from the LaserSell dashboard.

Body

application/json
wallet_pubkey
string
required

Solana wallet public key to register (base58).

Example:

"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"

signature
string
required

Ed25519 signature of the message, base58-encoded.

message
string
required

Structured message in the format lasersell-register:<pubkey>:<unix_timestamp>. The timestamp must be within 5 minutes of the server's current time.

Example:

"lasersell-register:9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM:1706000000"

label
string

Optional human-readable label for the wallet.

Example:

"My Trading Wallet"

Response

Wallet registered successfully.

wallet_pubkey
string
required

The registered wallet public key.

Example:

"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"

registered
boolean
required

Whether the wallet was successfully registered.

Example:

true