FastNEAR API (1.0.0)

API endpoints for the NEAR Protocol blockchain

Languages
Servers
NEAR Mainnet API
https://api.mainnet.fastnear.com/
NEAR Testnet API
https://api.testnet.fastnear.com/

keys

Operations for looking up NEAR accounts by public keys

Operations

Lookup accounts by public key

Request

Returns NEAR accounts associated with the provided public key

Path
public_keystringrequired

NEAR Protocol public key (ED25519 or secp256k1). Must be a valid base58-encoded public key string.

Example: ed25519:2onv9qxBqs5NYqTuLmotXcQbQGPVXZp537JYd3KFpYxV
curl -i -X GET \
  https://api.mainnet.fastnear.com/public_key/ed25519:2onv9qxBqs5NYqTuLmotXcQbQGPVXZp537JYd3KFpYxV

Responses

Successful response

Bodyapplication/json
public_keystring

The public key that was queried

account_idsArray of strings

List of NEAR account IDs associated with this public key

Response
application/json
{ "public_key": "ed25519:2onv9qxBqs5NYqTuLmotXcQbQGPVXZp537JYd3KFpYxV", "account_ids": [ "example.near" ] }

Lookup all accounts by public key

Request

Returns all NEAR accounts associated with the provided public key, including those with different permissions

Path
public_keystringrequired

NEAR Protocol public key (ED25519 or secp256k1). Must be a valid base58-encoded public key string.

Example: ed25519:2onv9qxBqs5NYqTuLmotXcQbQGPVXZp537JYd3KFpYxV
curl -i -X GET \
  https://api.mainnet.fastnear.com/public_key/ed25519:2onv9qxBqs5NYqTuLmotXcQbQGPVXZp537JYd3KFpYxV/all

Responses

Successful response

Bodyapplication/json
public_keystring

The public key that was queried

account_idsArray of strings

List of all NEAR account IDs associated with this public key

Response
application/json
{ "public_key": "ed25519:2onv9qxBqs5NYqTuLmotXcQbQGPVXZp537JYd3KFpYxV", "account_ids": [ "example.near", "example2.near" ] }

account

Operations for retrieving account information

token

Operations for fungible tokens and NFTs