Testnet Faucet Integration
import { HttpClient } from "@injectivelabs/utils"
const LAMBDA_API = "https://jsbqfdd4yk.execute-api.us-east-1.amazonaws.com/v1"
const client = new HttpClient(LAMBDA_API);
client
.post("faucet", { address: "inj1...." })
.then((response: any) => {
alert("success, your address is in the queue");
})
.catch((e: any) => {
alert("Something happened - " + e.message);
})
.finally(() => {
//
});Last updated
