Skip to main content
This reference details the shape of objects returned by the Near client. Use this to understand exactly what fields are available when parsing results.

Transaction Result (FinalExecutionOutcome)

Returned by .send() and near.call().

Execution Outcome (ExecutionOutcomeWithId)

Contains gas usage and logs.

Account Details (AccountView)

Returned by near.getAccountDetails(accountId).

Access Key (AccessKeyView)

Returned by near.getAccessKey(accountId, publicKey).

Errors

FunctionCallError

Thrown when a smart contract panics.

InvalidTransactionError

Thrown when the network rejects a transaction.

Utility Functions

Deterministic Account IDs (NEP-616)

deriveAccountId(stateInit)

Computes the deterministic account ID from initialization state.

isDeterministicAccountId(accountId)

Checks if an account ID is deterministic (starts with 0s).

verifyDeterministicAccountId(accountId, stateInit)

Verifies an account ID matches the expected derivation.
See Global Contracts.