Currently, my goal is to establish a token collection through the use of the Aptos Typescript SDK.
const account = new AptosAccount(Uint8Array.from(Buffer.from(PRIVATE_KEY)), ACCOUNT_ADDR);
await tokenClient.createCollection(
account,
"A test collection 1",
"A test collection",
"https://google.com",
);
However, I am encountering the following error:
ApiError2: {"message":"Invalid transaction: Type: Validation Code: INVALID_AUTH_KEY","error_code":"vm_error","vm_error_code":2}
I am unsure of what mistake I may be making. Any insights on this issue?
I attempted to follow the official Aptos example but with a twist - rather than creating a new account, I intend to utilize an existing account with funds already allocated.