Skip to content

Faucet API

Methods

Fill

add 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 subaccount.
subaccount_numberbodySubaccountNumbertrueA number that identifies a certain subaccount of the address
amountbodyBigDecimaltrueAmount to fill

Response

StatusMeaningSchemaDescription
200OKThe response

Examples: 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 subaccount.

Response

StatusMeaningSchemaDescription
200OKThe response

Examples: Python