How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

NEAR Protocol Tx API

The Tx API from NEAR Protocol — 1 operation(s) for tx.

NEAR Protocol Tx API is one of 60 APIs that NEAR Protocol publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Tx. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and rate-limit docs.

This API exposes 1 operation across 1 path, and defines 81 schemas. It is described by OpenAPI 3.2.0, at version 3.0.3.

Requests are made against 2 base URLs: https://api.fastnear.com, https://test.api.fastnear.com.

1 operations 1 paths 81 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
3.0.3
Base URL
https://rpc.mainnet.near.org
Resource Areas
1

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

Tx 1
POST
/tx
Queries status of a transaction by hash and returns the final transaction result.
tx body → 200

Schemas 81

The contract defines 81 schemas that model the data the API accepts and returns. The most detailed are SignedTransactionView (10 properties), ExecutionOutcomeView (7 properties), DelegateAction (6 properties), DelegateActionV2 (6 properties). Each schema is shown below with its type and property counts.

VersionedDelegateActionPayload
Versions of the delegate action carried by Action::DelegateV2. New versions add a variant here rather than a new Action variant. The variant is part of the sig…
InternalError
UseGlobalContractAction
object
Use global contract action
1 property 1 required
TransferAction
object
1 property 1 required
DeleteAccountAction
object
1 property 1 required
NonDelegateAction
An Action that can be included in a transaction or receipt, excluding delegate actions. This type represents all possible action types except DelegateAction to…
CreateAccountAction
object
Create account action
DeployContractAction
object
Deploy contract action
1 property 1 required
GlobalContractIdentifierView
StorageError
Errors which may occur during working with trie storages, storing trie values (trie nodes and state values) by their hashes.
AccessKey
object
Access key provides limited access to an account. Each access key belongs to some account and is identified by a unique (within the account) public key. One ac…
2 properties 2 required
RpcTransactionError
WithdrawFromGasKeyAction
object
Withdraw NEAR from a gas key's balance to the account. This action must only be available via transactions, not via contract execution (there is no correspondi…
2 properties 2 required
ReceiptValidationError
Describes the error for validating a receipt.
JsonRpcResponse_for_RpcTransactionResponse_and_RpcTransactionError
object
2 properties 2 required
NonceMode
Controls how the transaction nonce is validated against the access key nonce.
HostError
FunctionCallAction
object
4 properties 4 required
FinalExecutionStatus
GlobalContractDeployMode
ReceiptEnumView
WasmTrap
A kind of a trap happened during execution of a binary
TransferToGasKeyAction
object
Transfer NEAR to a gas key's balance
2 properties 2 required
RpcRequestValidationErrorKind
AddKeyAction
object
An action that adds key with public key associated
2 properties 2 required
DataReceiverView
object
2 properties 2 required
TxExecutionStatus
PrepareError
Error that can occur while preparing or executing Wasm smart-contract.
InvalidTxError
An error happened during TX execution
MissingTrieValueContext
Contexts in which StorageError::MissingTrieValue error might occur.
FunctionArgs
string
This type is used to mark function arguments. NOTE: The main reason for this to exist (except the type-safety) is that the value is transparently serialized an…
AccessKeyView
object
Describes access key permission scope and nonce.
2 properties 2 required
TransactionNonce
FinalExecutionOutcomeView
object
Execution outcome of the transaction and all the subsequent receipts. Could be not finalized yet
4 properties 4 required
ExecutionOutcomeWithIdView
object
4 properties 4 required
ShardId
integer
The shard identifier. It may be an arbitrary number - it does not need to be a number in the range 0..NUMSHARDS. The shard ids do not need to be sequential or…
InvalidAccessKeyError
AccountContractView
RPC view of a non-empty [AccountContract]. The AccountContract::None variant is represented externally as a JSON null via Option, so this enum only carries the…
DelegateActionV2
object
Delegate action with gas key support: nonce selects either the access key's nonce or one of a gas key's parallel nonces by index, mirroring TransactionV1.
6 properties 6 required
ExecutionStatusView
TxExecutionError
Error returned in the ExecutionOutcome in case of failure
GlobalContractIdentifier
DeleteKeyAction
object
1 property 1 required
AccessKeyPermission
Defines permissions for AccessKey
FinalExecutionOutcomeWithReceiptView
object
Final execution outcome of the transaction and all of subsequent the receipts. Also includes the generated receipt.
5 properties 5 required
FunctionCallPermission
object
Grants limited permission to make transactions with FunctionCallActions The permission can limit the allowed balance to be spent on the prepaid gas. It also re…
3 properties 2 required
CompilationError
MethodResolveError
string
NearGas
integer
RpcTransactionResponse
object
1 property 1 required
DeterministicAccountStateInit
SignedTransactionView
object
10 properties 7 required
DeterministicAccountStateInitV1
object
2 properties 2 required
ExecutionOutcomeView
object
7 properties 6 required
ActionView
AccountId
string
NEAR Account Identifier. This is a unique, syntactically valid, human-readable account identifier on the NEAR network. [See the crate-level docs for informatio…
DelegateAction
object
This action allows to execute the inner actions behalf of the defined sender.
6 properties 6 required
Direction
string
ErrorWrapper_for_RpcTransactionError
FunctionCallError
Serializable version of near-vm-runner::FunctionCallError. Must never reorder/remove elements, can only add new variants at the end (but do that very carefully…
Signature
string
ActionsValidationError
Describes the error for validating a list of actions.
DeployGlobalContractAction
object
Deploy global contract action
2 properties 2 required
ActionErrorKind
JsonRpcRequest_for_tx
object
4 properties 4 required
ExecutionMetadataView
object
3 properties 1 required
ReceiptView
object
5 properties 4 required
SignedTransaction
string
DepositCostFailureReason
string
Reason why a gas key transaction failed at the deposit/account level. In these cases, gas is still charged from the gas key.
PublicKey
string
CostGasUsed
object
Shows gas profile. More info [here](https://near.github.io/nearcore/architecture/gas/gasprofile.html?highlight=WASMHOSTCOSTexample-transaction-gas-profile).
3 properties 3 required
NearToken
string
RpcTransactionStatusRequest
object
1 property
DeterministicStateInitAction
object
2 properties 2 required
CryptoHash
string
GasKeyInfo
object
2 properties 2 required
AccessKeyPermissionView
Describes the permission scope for an access key. Whether it is a function call or a full access key.
ActionError
object
An error happened during Action execution
2 properties 1 required
StakeAction
object
An action which stakes signerid tokens and setup's validator public key
2 properties 2 required
MissingTrieValue
object
2 properties 2 required
MerklePathItem
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

near-tx-api-openapi.yml Raw ↑

Other APIs NEAR Protocol publishes across the network.

NEAR Protocol accounts API
NEAR Protocol Block API
NEAR Protocol Block Effects API
NEAR Protocol Broadcast Tx Async API
NEAR Protocol Broadcast Tx Commit API
NEAR Protocol Changes API
NEAR Protocol Chunk API
NEAR Protocol Client Config API
NEAR Protocol EXPERIMENTAL Call Function API
NEAR Protocol EXPERIMENTAL Changes API
NEAR Protocol EXPERIMENTAL Changes In Block API
NEAR Protocol EXPERIMENTAL Congestion Level API
Where this information came from

This is an independent, third-party profile of NEAR Protocol Tx API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.