Generates a keypair and returns its public key and the keypair itself as a Tuple.
Generates a keypair, labels it and returns its public key and the keypair itself as a Tuple.
More force full version of disconnect.
Disconnects the amman relay client and allows the app to shut down.
Only needed if you set { autoUnref: false }
for the amman client opts.
Provides a TransactionHandler which uses the {@link payer} to sign transactions.
If you cannot use the payerTransactionHandler then you can use this to verify the outcome of your transactions.
Creates an instance of Amman.
allows to override the client used to connect to the amman validator
allows to specify options for the amman relay client instead
used to determine if to connect an amman client if no {@link args.ammanClient} is provided; defaults to connect unless running in a CI environment
used to resolve a known errors from the program logs, see https://github.com/metaplex-foundation/cusper
label keys that do not change, i.e. { [PROGRM_ID]: 'My Program' }
function to replace key strings in a label to enhance it, i.e. with an icon
used to log labels that are added to {@link Amman.addresses} and information about other events
Provides a AmmanMockStorageDriver which stores uploaded data on the filesystem inside a tmp directory. The {@link MockStorageServer} initialized with the same {@link storageId} serves the files from there.
Drops the specified amount of tokens to the provided public key.
to solana JSON RPC node
to drop sols to
amount of sols to drop
Generated using TypeDoc
Creates an Amman instance which is used to interact with address labels and other amman features. By default it connects the socket client to the running amman validator. This allows it to update the amman-explorer with recent transactions and addresses.
NOTE: that Amman should only be instantiated once during the life time of your program, tests, etc.
Example