Interface TradeArgs

interface TradeArgs {
    address: string;
    amount: number;
    connection: Connection;
    limit?: number;
    networkId: number;
    nickname: string;
    programId: PublicKey;
    refWallet?: PublicKey;
    root: RootAccount;
    rootAccount: PublicKey;
    wallet: PublicKey;
}

Properties

address: string

Address in social network

amount: number

Tokens amount to trade

connection: Connection

@solana/web3.js Connection

limit?: number

The worst traded sum limit (for slippage)

networkId: number

Social network ID

nickname: string

Client's nickname (for there is no client's account)

programId: PublicKey

Smart contract address

refWallet?: PublicKey

RootAccount instance

rootAccount: PublicKey

Root account address

wallet: PublicKey

Client's wallet address