For the complete documentation index, see llms.txt. This page is also available as Markdown.

tempo_fundAddress - Tempo

Example code for the tempo_fundAddress JSON-RPC method. Complete guide on how to use tempo_fundAddress JSON-RPC in GetBlock Web3 documentation.

Mints test stablecoins to the given address. On the public Moderato testnet, this currently mints pathUSD, AlphaUSD, BetaUSD, and ThetaUSD. Available only on faucet-enabled testnet endpoints.

Parameters

TESTNET-FAUCET-ONLY METHOD. This method is only available on faucet-enabled testnet endpoints (such as the public Moderato testnet at https://rpc.moderato.tempo.xyz). It is not available on Tempo mainnet. Calling this method against a mainnet endpoint returns an error.

Parameter
Type
Required
Description

address

string

Yes

Recipient 20-byte address (0x...)

Request Example

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "tempo_fundAddress",
    "params": [
        "0xd85498dbeaeb1df24be52eed4f52eac2fbd56245"
    ],
    "id": "getblock.io"
}'

Response Example

Response Parameters

Field
Type
Description

result

array of string

Array of transaction hashes, one per token minted (typically 4 — pathUSD, AlphaUSD, BetaUSD, ThetaUSD)

Use Cases

  • Bootstrapping testnet wallets with all the standard test stablecoins in one call

  • Onboarding flows in testnet developer tools

  • CI/CD pipelines that need funded test accounts

Error Handling

Status Code
Error Message
Cause

403

Forbidden

Missing or invalid <ACCESS-TOKEN>

-32602

Invalid params

Request parameters are missing or malformed

429

Too Many Requests

Rate limit exceeded for your plan

-32601

Method not found

Faucet is not enabled on this endpoint (mainnet endpoints always return this error)

SDK Integration

Last updated

Was this helpful?