UNPKG

@solana/transactions

Version:

Helpers for creating and serializing transactions

19 lines 997 B
import { Address } from '@solana/addresses'; import { ReadonlyUint8Array } from '@solana/codecs-core'; import { SignatureBytes } from '@solana/keys'; import { Brand, EncodedString } from '@solana/nominal-types'; export type TransactionMessageBytes = Brand<ReadonlyUint8Array, 'TransactionMessageBytes'>; export type TransactionMessageBytesBase64 = Brand<EncodedString<string, 'base64'>, 'TransactionMessageBytesBase64'>; type OrderedMap<K extends string, V> = Record<K, V>; export type SignaturesMap = OrderedMap<Address, SignatureBytes | null>; export type Transaction = Readonly<{ /** The bytes of a compiled transaction message, encoded in wire format */ messageBytes: TransactionMessageBytes; /** * A map between the addresses of a transaction message's signers, and the 64-byte Ed25519 * signature of the transaction's `messageBytes` by the private key associated with each. */ signatures: SignaturesMap; }>; export {}; //# sourceMappingURL=transaction.d.ts.map