Crate arch_sdk

Source

Re-exports§

pub use arch_program;

Macros§

saturating_add_assign
Convenience macro for AddAssign with saturating arithmetic. Replace by std::num::Saturating once stable

Structs§

AccountInfo
AccountInfoWithPubkey
AccountUpdateEvent
Information about an account update
ArchRpcClient
ArchRpcClient provides a simple interface for making RPC calls to the Arch blockchain
AsyncArchRpcClient
AsyncArchRpcClient provides a simple interface for making asynchronous RPC calls to the Arch blockchain
BitcoinHelper
Helper struct for Bitcoin operations
Block
BlockEvent
Information about a new block
Config
DKGEvent
Information about a DKG event
EventFilter
A filter specification for events
FullBlock
ProcessedTransaction
ProgramAccount
ProgramDeployer
Program deployment service
ReappliedTransactionsEvent
Transactions that were reapplied
RolledbackTransactionsEvent
Transactions that were rolled back
RuntimeTransaction
Signature
SubscriptionErrorResponse
Error
SubscriptionRequest
SubscriptionResponse
Response to a subscription request
TransactionEvent
Information about a transaction
TransactionToSign
UnsubscribeRequest
UnsubscribeResponse
Response to an unsubscribe request
WebSocketClient
A client for the WebSocket API

Enums§

AccountFilter
ArchError
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
WebSocketError
Error types for the WebSocket client
WebSocketMessage
Represents all possible types of WebSocket messages that can be received
WebSocketRequest

Constants§

ALLOWED_VERSIONS
Allowed versions for RuntimeTransaction
MAX_TRANSACTIONS_PER_BLOCK
NOT_FOUND_CODE
RUNTIME_TX_SIZE_LIMIT

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
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
Result