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
Parameter | Location | Type | Required | Description |
---|---|---|---|---|
address | body | Address | true | The wallet address that owns the subaccount. |
subaccount_number | body | SubaccountNumber | true | A number that identifies a certain subaccount of the address |
amount | body | BigDecimal | true | Amount to fill |
Response
Status | Meaning | Schema | Description |
---|---|---|---|
200 | OK | The 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
Parameter | Location | Type | Required | Description |
---|---|---|---|---|
address | body | Address | true | The wallet address that owns the subaccount. |
Response
Status | Meaning | Schema | Description |
---|---|---|---|
200 | OK | The response |
Examples: Python