predecessorAccountId

apiDocs


near-sdk-js v2.0.0 / api / predecessorAccountId

Function: predecessorAccountId()

predecessorAccountId(): string

Returns the account ID of the account that called the function. Can only be called in a call or initialize function.

Returns

string

Defined in

packages/near-sdk-js/src/api.ts:200

Last updated