Modules§
Structs§
- Atto
Tokens - Types used in the public API An amount in SNT Atto. 10^18 Nanos = 1 SNT.
- Client
Proof OfPayment - The proof of payment for a data payment, only to be used on client side
- Custom
Network - Encoded
Peer Id - EvmWallet
- Payment
Quote - A payment quote to store data given by a node to a client Note that the PaymentQuote is a contract between the node and itself to make sure the clients aren’t mispaying. It is NOT a contract between the client and the node.
- Proof
OfPayment - The proof of payment for a data payment, only to be used on node side
- Quoting
Metrics - Quoting metrics used to generate a quote, or to track peer’s status.
- Transaction
Config
Enums§
- EvmError
- Transfer errors
- EvmNetwork
- EvmWallet
Error
Constants§
- DATA_
PAYMENTS_ ADDRESS - PAYMENT_
TOKEN_ ADDRESS - QUOTE_
EXPIRATION_ SECS - The time in seconds that a quote is valid for
- RPC_URL
- environment variable to connect to a custom EVM network
Functions§
- get_
evm_ network - Initialize the EVM Network.
Type Aliases§
- Amount
- Types used in the public API
- EvmAddress
- Quote
Hash - Quote
Payment - Result
- Specialisation of
std::Result
. - Rewards
Address - TxHash
- U256