Send
sendFaucet

sendFaucet

Send 1 APT to a devnet or testnet account.

import { sendFaucet } from 'aptosjs'

Usage

import { sendFaucet } from 'aptosjs'
 
function App(){
  return <button onClick={() => {
    sendFaucet({
      address: "0x1234567890123456789012345678901234567890",
      network: "devnet"
    })
 
    }}>
   Send APT
 </button>
}

Example Return

"success"

Input Values

{
  address: string,
  network: "devnet" | "testnet"
}

Address

address: string

Network

network : "devnet" | "testnet"

Return Values

"success"