PHP WebShell
Текущая директория: /opt/BitGoJS/modules/sdk-coin-sol/dist/src/lib
Просмотр файла: transferBuilderV2.d.ts
import { TransactionBuilder } from './transactionBuilder';
import { TransactionType } from '@bitgo/sdk-core';
import { Transaction } from './transaction';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { TokenAssociateRecipient } from './iface';
export interface SendParams {
address: string;
amount: string;
tokenName?: string;
}
export declare class TransferBuilderV2 extends TransactionBuilder {
private _sendParams;
private _createAtaParams;
constructor(_coinConfig: Readonly<CoinConfig>);
protected get transactionType(): TransactionType;
initBuilder(tx: Transaction): void;
/**
* Set a feePayer
* @param payerAddress
*/
feePayer(payerAddress: string): this;
/**
* Set a transfer
*
* @param {SendParams} sendParams - sendParams
* @returns {TransactionBuilder} This transaction builder
*/
send(sendParams: SendParams): this;
/**
*
* @param {TokenAssociateRecipient} recipient - recipient of the associated token account creation
* @param {string} recipient.ownerAddress - owner of the associated token account
* @param {string} recipient.tokenName - name of the token that is intended to associate
* @returns {TransactionBuilder} This transaction builder
*/
createAssociatedTokenAccount(recipient: TokenAssociateRecipient): this;
/** @inheritdoc */
protected buildImplementation(): Promise<Transaction>;
}
//# sourceMappingURL=transferBuilderV2.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!