Fund account from faucet
Fund a single-signer account from faucet
use jsonrpsee::http_client::HttpClient;
use fast_rust_examples::{fastset_types::*, client::ProxyRpcClient};
let (sender_pub_key, _sender_priv_key) = get_key_pair();
let client = HttpClient::builder().build("https://proxy.fastset.xyz")?;
client.faucet_drip(sender_pub_key, 10.into(), None).await?; use jsonrpsee::http_client::HttpClient;
use fast_rust_examples::{fastset_types::*, client::ProxyRpcClient};
let (sender_pub_key, _sender_priv_key) = get_key_pair();
let client = HttpClient::builder().build("https://proxy.fastset.xyz")?;
let my_token_id = TokenId::native(); // can replace this with your custom token ID
client.faucet_drip(sender_pub_key, 10.into(), Some(my_token_id.clone())).await?;