Skip to content

Faucet API

Methods

Fill

Add testnet USDC to a subaccount.

Method Declaration

Python
async def fill(
    self,
    address: str,
    subaccount_number: int,
    amount: float,
    headers: Optional[Dict] = None,
) -> httpx.Response

Parameters

ParameterLocationTypeRequiredDescription
addressbodyAddresstrueThe wallet address that owns the account.
subaccount_numberbodySubaccountNumbertrueA number that identifies a certain subaccount of the address
amountbodyBigDecimaltrueAmount to fill

Response

StatusMeaningSchemaDescription
200OKThe response
400Bad RequestThe request was malformed or invalid
404Not FoundThe subaccount was not found.

Python | TypeScript

Fill Native

Add native dYdX testnet token to an address.

Method Declaration

Python
async def fill_native(
    self,
    address: str,
    headers: Optional[Dict] = None,
) -> httpx.Response

Parameters

ParameterLocationTypeRequiredDescription
addressbodyAddresstrueThe wallet address that owns the account.

Response

StatusMeaningSchemaDescription
200OKThe response
400Bad RequestThe request was malformed or invalid

Examples: Python