Expand description
Functionality for funding transactions in SOL.
Structs§
- Post
Object - Generic data structure for making json rpc requests.
- SigResponse
- Struct for receiving signature back from api.
- TxData
- Struct for submitting required data to signature api.
Constants§
- FLOOR
- Minimum SOL transaction amount.
- RATE
- Winstons per lamports exchange rate for calculating SOL payment amounts.
- SOLANA_
DEV_ URL - Solana dev net uri used to get recent blockhash and wallet balance.
- SOLANA_
MAIN_ URL - Solana main net uri used to get recent blockhash and wallet balance.
- SOL_
AR_ BASE_ URL - Uri of Solana payment api.
- SOL_
AR_ PUBKEY - Solana address to which SOL payments are made.
Functions§
- create_
sol_ transaction - Creates Solana transaction.
- get_
recent_ blockhash - Returns recent blockhash neeed to create transaction.
- get_
sol_ ar_ signature - Submits Solana transaction and required transaction elements and gets back signed AR transaction.
- get_
sol_ wallet_ balance - Returns wallet balance.
- request_
airdrop - Airdrops tokens from devnet for testing purposes.