Skip to main content
Version: 2.4.0

README

Namespaces

NamespaceDescription
TestPublicKey-
Transaction-

Type Aliases

Type aliasDescription
ActionStates-
FeePayerSpecAllows you to specify information about the fee payer account and the transaction.
IncludedTransactionRepresents a transaction that has been successfully included in a block.
NetworkConstants-
PendingTransactionRepresents a transaction that has been submitted to the blockchain but has not yet reached a final state. The PendingTransaction type extends certain functionalities from the base Transaction type, adding methods to monitor the transaction's progress towards being finalized (either included in a block or rejected).
PendingTransactionPromiseA Promise<PendingTransaction> with an additional wait method, which calls into the inner TransactionStatus's wait method upon its resolution.
PendingTransactionStatus-
RejectedTransactionRepresents a transaction that has been rejected and not included in a blockchain block.
TestPublicKey-
TransactionDefines the structure and operations associated with a transaction. This type encompasses methods for serializing the transaction, signing it, generating proofs, and submitting it to the network.

Variables

VariableDescription
activeInstance-

Functions

FunctionDescription
currentSlot-
currentTransaction-
faucetRequests the testnet faucet to fund a public key.
fetchActions-
fetchEvents-
filterGroups-
getAccount-
getActions-
getBalance-
getNetworkConstants-
getNetworkId-
getNetworkState-
getProofsEnabled-
hasAccountChecks if an account exists within the ledger.
LocalBlockchainA mock Mina blockchain running locally and useful for testing.
NetworkRepresents the Mina blockchain running on a real network
senderReturns the public key of the current transaction's sender account.
setActiveInstanceSet the currently used Mina instance.
TestPublicKey-
transactionConstruct a smart contract transaction. Within the callback passed to this function, you can call into the methods of smart contracts.
waitForFunding-