Skip to main content

Crate arch_sdk

Crate arch_sdk 

Source

Re-exports§

pub use arch_program;

Modules§

blocking
Blocking (synchronous) API wrappers.

Structs§

AccountInfo
AccountInfoWithPubkey
AccountUpdateEvent
Information about an account update
ArchRpcClient
ArchRpcClient provides a simple interface for making RPC calls to the Arch blockchain
BitcoinHelper
Block
BlockEvent
Information about a new block
Config
DKGEvent
Information about a DKG event
EventFilter
A filter specification for events
FullBlock
InnerInstruction
ProcessedTransaction
ProgramAccount
ProgramDeployer
ReappliedTransactionsEvent
Transactions that were reapplied
RolledbackTransactionsEvent
Transactions that were rolled back
RuntimeTransaction
Signature
SubscriptionErrorResponse
Error response returned by the subscription server.
SubscriptionRequest
Request payload for a single topic subscription.
SubscriptionResponse
Response to a subscription request.
TransactionEvent
Information about a transaction
TransactionToSign
UnsubscribeRequest
Request payload used to unsubscribe an existing subscription.
UnsubscribeResponse
Response to an unsubscribe request.
WebSocketClient
A client for the WebSocket API

Enums§

AccountFilter
ArchError
BIP322SigningErrorKind
BackoffStrategy
Backoff strategy for reconnection attempts
BlockParseError
BlockTransactionFilter
Event
The main Event enum that represents all possible events in the system
EventTopic
ParseProcessedTransactionError
ProgramDeployerError
Error type for program deployment operations
RollbackStatus
RuntimeTransactionError
Status
SubscriptionStatus
Status returned by subscribe/unsubscribe operations.
WebSocketError
Error types for the WebSocket client
WebSocketMessage
Represents all possible types of WebSocket messages that can be received
WebSocketRequest
Outbound WebSocket request sent to the validator subscription server.

Constants§

ACCOUNT_FUNDING_AMOUNT
ALLOWED_VERSIONS
Allowed versions for RuntimeTransaction
CHECK_PRE_ANCHOR_CONFLICT
GET_ACCOUNT_ADDRESS
GET_BEST_BLOCK_HASH
GET_BEST_FINALIZED_BLOCK_HASH
GET_BLOCK
GET_BLOCK_BY_HEIGHT
GET_BLOCK_COUNT
GET_BLOCK_HASH
GET_FULL_BLOCK_WITH_TXIDS
GET_MULTIPLE_ACCOUNTS
GET_PROCESSED_TRANSACTION
GET_PROGRAM_ACCOUNTS
GET_TRANSACTION_STATUS
MAX_LOG_MESSAGES_COUNT
MAX_LOG_MESSAGES_LEN
MAX_STATUS_FAILED_MESSAGE_SIZE
MAX_TRANSACTIONS_PER_BLOCK
MAX_TX_BATCH_SIZE
READ_ACCOUNT_INFO
ROLLBACK_MESSAGE_BUFFER_SIZE
RUNTIME_TX_SIZE_LIMIT
SEND_TRANSACTION
SEND_TRANSACTIONS

Functions§

build_and_sign_transaction
Sign and send a transaction
extend_bytes_max_len
Returns the remaining space in an account’s data storage
generate_new_keypair
Generates an untweaked keypair, and provides it’s pubkey and BTC address corresponding to the currently used BTC Network
get_state
is_parity_even
prepare_fees
sign_message_bip322
Signs a message following the BIP 322 Standard : https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki
verify_message_bip322
Verifies a BIP 322 signature for a particular message https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki
with_secret_key_file

Type Aliases§

AsyncEventCallback
Asynchronous event handler that can perform async operations
ConnectionCallback
Connection status change handler
EventCallback
Event handler that receives events from subscriptions
InnerInstructions
An ordered list of compiled instructions that were invoked during a transaction instruction
InnerInstructionsList
A list of compiled instructions that were invoked during each instruction of a transaction
Result