`https://jsbqfdd4yk.execute-api.us-east-1.amazonaws.com/v1/faucet` に対して POST リクエストを行い、POST リクエストのbodyとして { address: inj1...} を渡すことだけです。アドレスはキュー内に保存され、5〜10分ごとに処理されます。
以下はサンプルコードです:\
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
`https://jsbqfdd4yk.execute-api.us-east-1.amazonaws.com/v1/faucet` に対して POST リクエストを行い、POST リクエストのbodyとして { address: inj1...} を渡すことだけです。アドレスはキュー内に保存され、5〜10分ごとに処理されます。
以下はサンプルコードです:\
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(() => {
//
});
