transfer
transfer: { instructions: (from: PublicKey, to: PublicKey, amount: number) => TransactionInstruction[]; rawInstructions: (from: PublicKey, to: PublicKey, amount: number) => TransactionInstruction[]; send: (conn: Connection, to: PublicKey, amount: number, wallet: WalletI) => Promise<string>; signed: (conn: Connection, to: PublicKey, amount: number, wallet: WalletI) => Promise<Transaction>; tx: (conn: Connection, from: PublicKey, to: PublicKey, amount: number) => Promise<Transaction> } = ...
Type declaration
instructions: (from: PublicKey, to: PublicKey, amount: number) => TransactionInstruction[]
- (from: PublicKey, to: PublicKey, amount: number): TransactionInstruction[]
Parameters
from: PublicKey
to: PublicKey
amount: number
Returns TransactionInstruction[]
rawInstructions: (from: PublicKey, to: PublicKey, amount: number) => TransactionInstruction[]
- (from: PublicKey, to: PublicKey, amount: number): TransactionInstruction[]
Parameters
from: PublicKey
to: PublicKey
amount: number
Returns TransactionInstruction[]
send: (conn: Connection, to: PublicKey, amount: number, wallet: WalletI) => Promise<string>
- (conn: Connection, to: PublicKey, amount: number, wallet: WalletI): Promise<string>
Parameters
conn: Connection
to: PublicKey
amount: number
wallet: WalletI
Returns Promise<string>
signed: (conn: Connection, to: PublicKey, amount: number, wallet: WalletI) => Promise<Transaction>
- (conn: Connection, to: PublicKey, amount: number, wallet: WalletI): Promise<Transaction>
Parameters
conn: Connection
to: PublicKey
amount: number
wallet: WalletI
Returns Promise<Transaction>
tx: (conn: Connection, from: PublicKey, to: PublicKey, amount: number) => Promise<Transaction>
- (conn: Connection, from: PublicKey, to: PublicKey, amount: number): Promise<Transaction>
Parameters
conn: Connection
from: PublicKey
to: PublicKey
amount: number
Returns Promise<Transaction>