Request Faucet Funds
Effortlessly obtain SOL from the Solana faucet for development and testing purposes on devnet or testnet environments using the FaucetManager class.
response = await agent.connection.request_airdrop(
agent.wallet_address, 5 * LAMPORTS_PER_SOL
) latest_blockhash = await agent.connection.get_latest_blockhash()
await agent.connection.confirm_transaction(
tx_signature,
commitment=Confirmed,
last_valid_block_height=latest_blockhash.value.last_valid_block_height
) Last updated
