SolanaClientSolanaPay extension

on

Methods

createSolanaPayMessage({required Ed25519HDKeyPair payer, required Ed25519HDPublicKey recipient, required Decimal amount, Ed25519HDPublicKey? splToken, Iterable<Ed25519HDPublicKey>? reference, String? memo, Commitment commitment = Commitment.finalized}) Future<Message>

Available on SolanaClient, provided by the SolanaClientSolanaPay extension

Creates Solana Pay transaction from payer to recipient.
findSolanaPayTransaction({required Ed25519HDPublicKey reference, Commitment commitment = Commitment.finalized}) Future<TransactionId?>

Available on SolanaClient, provided by the SolanaClientSolanaPay extension

Finds the oldest transaction signature referencing a given public key.
processSolanaPayTransactionRequest({required String transaction, required Ed25519HDPublicKey signer, Commitment commitment = Commitment.finalized, bool ignoreSignerVerification = false}) Future<SignedTx>

Available on SolanaClient, provided by the SolanaClientSolanaPay extension

Processes the transaction from a Solana Pay transaction request link.
sendSolanaPay({required Ed25519HDKeyPair payer, required Ed25519HDPublicKey recipient, required Decimal amount, Ed25519HDPublicKey? splToken, Iterable<Ed25519HDPublicKey>? reference, String? memo, SignatureCallback? onSigned, Commitment commitment = Commitment.finalized}) Future<TransactionId>

Available on SolanaClient, provided by the SolanaClientSolanaPay extension

Creates, signs and sends Solana Pay transaction from payer to recipient.
validateSolanaPayTransaction({required TransactionId signature, required Ed25519HDPublicKey recipient, required Decimal amount, Ed25519HDPublicKey? splToken, Iterable<Ed25519HDPublicKey>? reference, TokenProgramType tokenProgramType = TokenProgramType.tokenProgram, Commitment commitment = Commitment.finalized}) Future<TransactionDetails>

Available on SolanaClient, provided by the SolanaClientSolanaPay extension

Validates that a given transaction signature corresponds with a transaction containing a valid Solana Pay transfer.