Skip to main content
The Phantom Connect Browser SDK provides chain-specific message signing methods through dedicated interfaces (sdk.solana and sdk.ethereum).

Chain-specific message signing

Solana message signing

The Solana signature is a 64-byte Uint8Array. Encode it, for example as base58 with bs58, before you display it or send it to a backend.

Ethereum message signing

Complete examples

The Solana example encodes signatures with bs58. Install it before running the example:

Solana message signing

Ethereum message signing

EIP-712 typed data signing