Transfer a Token

You can transfer tokens from the wallet associated with your API key (or a specific account) to any Solana Public Key.
val options = SendOptions(
    account = "", // Optional: specify a source account, defaults to your generated wallet
    toAddress = "EykLriS4Z34YSgyPdTeF6DHHiq7rvTBaG2ipog4V2teq",
    amount = 0.00001
)

val result = Altude.send(options)
By default, KIN will be transferred unless another token is specified. To send a different token, include the token (mint address) parameter:
val options = SendOptions(
    account = "", // Optional
    toAddress = "EykLriS4Z34YSgyPdTeF6DHHiq7rvTBaG2ipog4V2teq",
    amount = 0.00001,
    token = Token.USDC.mint(),         // Token (mint address) for USDC
    commitment = Commitment.finalized  // Optional commitment level
)

val result = Altude.send(options)

Transfer Tokens in Batches

You can also send the same or different tokens to multiple recipients in a single batch.
val options = listOf(
    SendOptions(
        toAddress = "EykLriS4Z34YSgyPdTeF6DHHiq7rvTBaG2ipog4V2teq",
        amount = 0.00001,
        token = Token.KIN.mint(),
    ),
    SendOptions(
        toAddress = "ALZ8NJcf8JDL7j7iVfoyXM8u3fT3DoBXsnAU6ML7Sb5W",
        amount = 0.00001,
        token = Token.KIN.mint(),
    ),
)

val result = Altude.sendBatch(options)