@aptos-labs/ts-sdk
Version:
Aptos TypeScript SDK
27 lines • 1.36 kB
TypeScript
import { AptosConfig } from "../api/aptosConfig.js";
import { AccountAddressInput } from "../core/index.js";
import { InputGenerateTransactionOptions } from "../transactions/types.js";
import { AnyNumber, MoveStructId } from "../types/index.js";
import { SimpleTransaction } from "../transactions/instances/simpleTransaction.js";
/**
* Generates a transaction to transfer coins from one account to another.
* This function allows you to specify the sender, recipient, amount, and coin type for the transaction.
*
* @param args - The parameters for the transaction.
* @param args.aptosConfig - The Aptos configuration object.
* @param args.sender - The address of the account sending the coins.
* @param args.recipient - The address of the account receiving the coins.
* @param args.amount - The amount of coins to transfer.
* @param args.coinType - (Optional) The type of coin to transfer, defaults to Aptos Coin if not specified.
* @param args.options - (Optional) Options for generating the transaction.
* @group Implementation
*/
export declare function transferCoinTransaction(args: {
aptosConfig: AptosConfig;
sender: AccountAddressInput;
recipient: AccountAddressInput;
amount: AnyNumber;
coinType?: MoveStructId;
options?: InputGenerateTransactionOptions;
}): Promise<SimpleTransaction>;
//# sourceMappingURL=coin.d.ts.map