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>
Creates Solana Pay transaction from payer to recipient.
findSolanaPayTransaction({required Ed25519HDPublicKey reference, Commitment commitment = Commitment.finalized}) Future<TransactionId?>
Finds the oldest transaction signature referencing a given public key.
processSolanaPayTransactionRequest({required String transaction, required Ed25519HDPublicKey signer, Commitment commitment = Commitment.finalized}) Future<SignedTx>
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>
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, Commitment commitment = Commitment.finalized}) Future<TransactionDetails>
Validates that a given transaction signature corresponds with a transaction containing a valid Solana Pay transfer.