Interface RestRequestAuthorizePayout

Get Payout Program Authorization


Example

import { PayoutProgram } from '@idexio/idex-sdk';

// create client

await authenticatedClient.authorizePayout({
wallet: '0x...',
nonce: uuidv1(),
program: PayoutProgram.tradingRewardsV2
})


See

interface RestRequestAuthorizePayout {
    nonce: string;
    wallet: string;
    program: PayoutProgram;
}

Hierarchy (view full)

Properties

Properties

nonce: string

User data and trade endpoints requests must include a nonce.

  • MUST be a version 1 UUID
  • Nonces may be supplied with or without hyphens.

Remarks

Version 1 UUIDs encode a timestamp in addition to other unique information, and thus serve both to prevent replay attacks as well as to enforce request timing. As a result, nonces MUST be generated at the time of a request.

wallet: string

The wallet address to use for the request.

program: PayoutProgram
  • The payout program to authorize a payout for the given wallet

Example

import { PayoutProgram } from '@idexio/idex-sdk';

// create client

await client.authorizePayout({
wallet: '0x...',
nonce: uuidv1(),
// use the PayoutProgram enum for inline auto completion
program: PayoutProgram.tradingRewardsV2
})