generateCreateAtaBatchTx()
generateCreateAtaBatchTx()
function generateCreateAtaBatchTx(
connection,
payer,
paramsBatch,
commitment?): Promise<{
context: Context;
hash: BlockhashWithExpiryBlockHeight;
tx: VersionedTransaction;
}>;Defined in: utils.ts:484
Generates a Transaction to create ATA for an array of owners
Parameters
| Parameter | Type | Description |
|---|---|---|
connection | Connection | Solana client connection |
payer | PublicKey | Transaction invoker, should be a signer |
paramsBatch | AtaParams[] | Array of Params for an each ATA account: {mint, owner} |
commitment? | Commitment | optional commitment that will be used to fetch Blockhash |
Returns
Promise<{
context: Context;
hash: BlockhashWithExpiryBlockHeight;
tx: VersionedTransaction;
}>
Unsigned Transaction with create ATA instructions