claimWithAuthToken

claimWithAuthToken is a method on the faucet object that claims tokens using an authentication token. This method is useful when you already have a valid auth token from a previous captcha verification.

claimWithAuthToken does not require authentication.

Examples

claimWithAuthToken

const result = await ario.faucet.claimWithAuthToken({
    authToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
    recipient: '7oqF5r...LbpfT7',
    quantity: 1000000000
});

Parameters

ParameterTypeDescriptionOptional
authTokenstring

The authentication token obtained from requestAuthToken

false
recipientstringThe wallet address to receive the claimed tokensfalse
quantitynumberThe quantity of tokens to claimfalse

Output

{
  "id": "claim_123456789",
  "success": true
}

Was this page helpful?