Join our
Discord!
LogoLogo
SupraScan ExplorerStarKey WalletDiscord
MoveVM
  • Network
  • Oracles
  • Automation
  • SupraNova
  • Guides
MoveVM
  • Overview
  • Getting Started
    • Install Supra CLI with Docker
    • Create a Supra Account
    • Create a Move Package
      • Initialize a Package
      • Write a Module
      • Compile and Publish
      • Interact with a Package
    • Create a dApp with StarKey
  • Network Information
  • Token Standards
  • Learn Move 101
    • Getting Started with Move
    • Unsigned Integers in Move
    • Math Operations in Move
    • Using Vectors in Move
    • Reading Resource Data with borrow_global
    • Passing Data in Move: Value vs. Reference
    • Adding Elements with vector::push_back
    • Emitting Events with event::emit
  • Move Book
    • Getting Started
      • Modules and Scripts
      • Move Tutorial
    • Primitive Types
      • Integers
      • Bool
      • Address
      • Vector
      • Signer
      • References
      • Tuples and Unit
    • Basic Concepts
      • Local Variables and Scope
      • Equality
      • Abort and Assert
      • Conditionals
      • While, For, and Loop
      • Functions
      • Structs and Resources
      • Constants
      • Generics
      • Type Abilities
      • Uses and Aliases
      • Friends
      • Packages
      • Package Upgrades
      • Unit Tests
    • Global Storage
      • Structure
      • Operators
    • Reference
      • Standard Library
      • Coding Conventions
  • TypeScript SDK
    • Guides
      • Create Supra Accounts
      • Publish a Package
    • Documentation
    • Repository
  • Rest API
    • Mainnet
      • Accounts
      • Faucet
      • Transactions
      • Block
      • View
      • Consensus
      • Events
      • Tables
    • Testnet
      • Accounts
      • Faucet
      • Transactions
      • Block
      • View
      • Events
      • Tables
  • Developer Resources
    • Supra Dapp Templates
    • Supra Move VS Code Extension
  • Links
    • Supra DevHub
    • SupraScan Block Explorer
    • StarKey Wallet
    • Live Data Feeds
    • Whitepapers
    • Security Audits
    • Supra's Official GitHub
Powered by GitBook
On this page
  1. Rest API
  2. Mainnet

Faucet

PreviousAccountsNextTransactions

Faucet Api

Get information about a faucet transaction by its hash.

get
Path parameters
hashstringRequired

Hash of the faucet transaction to lookup

Responses
200
Faucet transaction data of the given transaction hash
application/json
Responseall of | nullable
get
GET /rpc/v1/wallet/faucet/transactions/{hash} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
200

Faucet transaction data of the given transaction hash

{
  "authenticator": {},
  "block_header": {
    "hash": "binary",
    "height": 1,
    "timestamp": {
      "timestamp": 1
    }
  },
  "hash": "binary",
  "header": {
    "chain_id": 1,
    "expiration_timestamp": {
      "timestamp": 1
    },
    "sender": "text",
    "sequence_number": 1,
    "gas_unit_price": 1,
    "max_gas_amount": 1
  },
  "payload": {},
  "output": {
    "Dkg": "Success"
  },
  "status": "Success"
}

Faucet endpoint

get

funds account with [FUND_AMOUNT] coins

Path parameters
addressstringRequired

account address to fund

Responses
200
list of associated transactions created
application/json
Responseone of

Faucet may immediately return a hash of a funding tx, or, when all minter accounts are busy, reject the request.

or
string ยท enumOptionalPossible values:
get
GET /rpc/v1/wallet/faucet/{address} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
200

list of associated transactions created

{
  "Accepted": "binary"
}
  • GETGet information about a faucet transaction by its hash.
  • GETFaucet endpoint