Chains

Block model

sf.near.type.v1.Block

sf.near.type.v1.BlockHeader

uint64height = 1
uint64prev_height = 2
CryptoHashepoch_id = 3
CryptoHashnext_epoch_id = 4
CryptoHashhash = 5
CryptoHashprev_hash = 6
CryptoHashprev_state_root = 7
CryptoHashchunk_receipts_root = 8
CryptoHashchunk_headers_root = 9
CryptoHashchunk_tx_root = 10
CryptoHashoutcome_root = 11
uint64chunks_included = 12
CryptoHashchallenges_root = 13
uint64timestamp = 14
uint64timestamp_nanosec = 15
CryptoHashrandom_value = 16
ValidatorStake[]validator_proposals = 17
bool[]chunk_mask = 18
BigIntgas_price = 19
uint64block_ordinal = 20
BigInttotal_supply = 21
SlashedValidator[]challenges_result = 22
uint64last_final_block_height = 23
CryptoHashlast_final_block = 24
uint64last_ds_final_block_height = 25
CryptoHashlast_ds_final_block = 26
CryptoHashnext_bp_hash = 27
CryptoHashblock_merkle_root = 28
bytesepoch_sync_data_hash = 29
Signature[]approvals = 30
Signaturesignature = 31
uint32latest_protocol_version = 32

sf.near.type.v1.ChunkHeader

byteschunk_hash = 1
bytesprev_block_hash = 2
bytesoutcome_root = 3
bytesprev_state_root = 4
bytesencoded_merkle_root = 5
uint64encoded_length = 6
uint64height_created = 7
uint64height_included = 8
uint64shard_id = 9
uint64gas_used = 10
uint64gas_limit = 11
BigIntvalidator_reward = 12
BigIntbalance_burnt = 13
bytesoutgoing_receipts_root = 14
bytestx_root = 15
ValidatorStake[]validator_proposals = 16
Signaturesignature = 17

sf.near.type.v1.CryptoHash

bytesbytes = 1

sf.near.type.v1.ValidatorStake

stringaccount_id = 1
PublicKeypublic_key = 2
BigIntstake = 3

sf.near.type.v1.BigInt

bytesbytes = 1

sf.near.type.v1.SlashedValidator

stringaccount_id = 1
boolis_double_sign = 2

sf.near.type.v1.Signature

CurveKindtype = 1
bytesbytes = 2

sf.near.type.v1.StateChangeValue

StateChangeValue.AccountUpdateaccount_update = 1oneof value
StateChangeValue.AccountDeletionaccount_deletion = 2oneof value
StateChangeValue.AccessKeyUpdateaccess_key_update = 3oneof value
StateChangeValue.AccessKeyDeletionaccess_key_deletion = 4oneof value
StateChangeValue.DataUpdatedata_update = 5oneof value
StateChangeValue.DataDeletiondata_deletion = 6oneof value
StateChangeValue.ContractCodeUpdatecontract_code_update = 7oneof value
StateChangeValue.ContractCodeDeletioncontract_deletion = 8oneof value

sf.near.type.v1.StateChangeCause

StateChangeCause.NotWritableToDisknot_writable_to_disk = 1oneof cause
StateChangeCause.InitialStateinitial_state = 2oneof cause
StateChangeCause.TransactionProcessingtransaction_processing = 3oneof cause
StateChangeCause.ActionReceiptProcessingStartedaction_receipt_processing_started = 4oneof cause
StateChangeCause.ActionReceiptGasRewardaction_receipt_gas_reward = 5oneof cause
StateChangeCause.ReceiptProcessingreceipt_processing = 6oneof cause
StateChangeCause.PostponedReceiptpostponed_receipt = 7oneof cause
StateChangeCause.UpdatedDelayedReceiptsupdated_delayed_receipts = 8oneof cause
StateChangeCause.ValidatorAccountsUpdatevalidator_accounts_update = 9oneof cause
StateChangeCause.Migrationmigration = 10oneof cause

sf.near.type.v1.PublicKey

CurveKindtype = 1
bytesbytes = 2

sf.near.type.v1.StateChangeValue.AccountUpdate

stringaccount_id = 1
Accountaccount = 2

sf.near.type.v1.StateChangeValue.AccountDeletion

stringaccount_id = 1

sf.near.type.v1.StateChangeValue.AccessKeyUpdate

stringaccount_id = 1
PublicKeypublic_key = 2
AccessKeyaccess_key = 3

sf.near.type.v1.StateChangeValue.AccessKeyDeletion

stringaccount_id = 1
PublicKeypublic_key = 2

sf.near.type.v1.StateChangeValue.DataUpdate

stringaccount_id = 1
byteskey = 2
bytesvalue = 3

sf.near.type.v1.StateChangeValue.DataDeletion

stringaccount_id = 1
byteskey = 2

sf.near.type.v1.StateChangeValue.ContractCodeUpdate

stringaccount_id = 1
bytescode = 2

sf.near.type.v1.StateChangeValue.ContractCodeDeletion

stringaccount_id = 1

sf.near.type.v1.StateChangeCause.NotWritableToDisk

sf.near.type.v1.StateChangeCause.InitialState

sf.near.type.v1.StateChangeCause.TransactionProcessing

CryptoHashtx_hash = 1

sf.near.type.v1.StateChangeCause.ActionReceiptProcessingStarted

CryptoHashreceipt_hash = 1

sf.near.type.v1.StateChangeCause.ActionReceiptGasReward

CryptoHashtx_hash = 1

sf.near.type.v1.StateChangeCause.ReceiptProcessing

CryptoHashtx_hash = 1

sf.near.type.v1.StateChangeCause.PostponedReceipt

CryptoHashtx_hash = 1

sf.near.type.v1.StateChangeCause.UpdatedDelayedReceipts

sf.near.type.v1.StateChangeCause.ValidatorAccountsUpdate

sf.near.type.v1.StateChangeCause.Migration

sf.near.type.v1.ReceiptData

CryptoHashdata_id = 1
bytesdata = 2

sf.near.type.v1.DataReceiver

CryptoHashdata_id = 1
stringreceiver_id = 2

sf.near.type.v1.UnknownExecutionStatus

sf.near.type.v1.FailureExecutionStatus

ActionErroraction_error = 1oneof failure
InvalidTxErrorinvalid_tx_error = 2oneof failure

sf.near.type.v1.SuccessValueExecutionStatus

bytesvalue = 1

sf.near.type.v1.SuccessReceiptIdExecutionStatus

sf.near.type.v1.CreateAccountAction

sf.near.type.v1.DeployContractAction

bytescode = 1

sf.near.type.v1.FunctionCallAction

stringmethod_name = 1
bytesargs = 2
uint64gas = 3
BigIntdeposit = 4

sf.near.type.v1.TransferAction

BigIntdeposit = 1

sf.near.type.v1.DeleteKeyAction

PublicKeypublic_key = 1

sf.near.type.v1.DeleteAccountAction

stringbeneficiary_id = 1

sf.near.type.v1.ActionError

uint64index = 1
AccountAlreadyExistsErrorKindaccount_already_exist = 21oneof kind
AccountDoesNotExistErrorKindaccount_does_not_exist = 22oneof kind
CreateAccountOnlyByRegistrarErrorKindcreate_account_only_by_registrar = 23oneof kind
CreateAccountNotAllowedErrorKindcreate_account_not_allowed = 24oneof kind
ActorNoPermissionErrorKindactor_no_permission = 25oneof kind
DeleteKeyDoesNotExistErrorKinddelete_key_does_not_exist = 26oneof kind
AddKeyAlreadyExistsErrorKindadd_key_already_exists = 27oneof kind
DeleteAccountStakingErrorKinddelete_account_staking = 28oneof kind
LackBalanceForStateErrorKindlack_balance_for_state = 29oneof kind
TriesToUnstakeErrorKindtries_to_unstake = 30oneof kind
TriesToStakeErrorKindtries_to_stake = 31oneof kind
InsufficientStakeErrorKindinsufficient_stake = 32oneof kind
FunctionCallErrorKindfunction_call = 33oneof kind
NewReceiptValidationErrorKindnew_receipt_validation = 34oneof kind
OnlyImplicitAccountCreationAllowedErrorKindonly_implicit_account_creation_allowed = 35oneof kind
DeleteAccountWithLargeStateErrorKinddelete_account_with_large_state = 36oneof kind
DelegateActionInvalidSignatureKinddelegate_action_invalid_signature = 37oneof kind
DelegateActionSenderDoesNotMatchTxReceiverKinddelegate_action_sender_does_not_match_tx_receiver = 38oneof kind
DelegateActionExpiredKinddelegate_action_expired = 39oneof kind
DelegateActionAccessKeyErrorKinddelegate_action_access_key_error = 40oneof kind
DelegateActionInvalidNonceKinddelegate_action_invalid_nonce = 41oneof kind
DelegateActionNonceTooLargeKinddelegate_action_nonce_too_large = 42oneof kind

sf.near.type.v1.FunctionCallPermission

BigIntallowance = 1
stringreceiver_id = 2
string[]method_names = 3

sf.near.type.v1.FullAccessPermission

sf.near.type.v1.DelegateAction

stringsender_id = 1
stringreceiver_id = 2
Action[]actions = 3
uint64nonce = 4
uint64max_block_height = 5
PublicKeypublic_key = 6

sf.near.type.v1.AccountAlreadyExistsErrorKind

stringaccount_id = 1

sf.near.type.v1.AccountDoesNotExistErrorKind

stringaccount_id = 1

sf.near.type.v1.CreateAccountOnlyByRegistrarErrorKind

/ A top-level account ID can only be created by registrar.

stringaccount_id = 1
stringregistrar_account_id = 2
stringpredecessor_id = 3

sf.near.type.v1.CreateAccountNotAllowedErrorKind

stringaccount_id = 1
stringpredecessor_id = 2

sf.near.type.v1.ActorNoPermissionErrorKind

stringaccount_id = 1
stringactor_id = 2

sf.near.type.v1.DeleteKeyDoesNotExistErrorKind

stringaccount_id = 1
PublicKeypublic_key = 2

sf.near.type.v1.AddKeyAlreadyExistsErrorKind

stringaccount_id = 1
PublicKeypublic_key = 2

sf.near.type.v1.DeleteAccountStakingErrorKind

stringaccount_id = 1

sf.near.type.v1.LackBalanceForStateErrorKind

stringaccount_id = 1
BigIntbalance = 2

sf.near.type.v1.TriesToUnstakeErrorKind

stringaccount_id = 1

sf.near.type.v1.TriesToStakeErrorKind

stringaccount_id = 1
BigIntstake = 2
BigIntlocked = 3
BigIntbalance = 4

sf.near.type.v1.InsufficientStakeErrorKind

stringaccount_id = 1
BigIntstake = 2
BigIntminimum_stake = 3

sf.near.type.v1.OnlyImplicitAccountCreationAllowedErrorKind

stringaccount_id = 1

sf.near.type.v1.DeleteAccountWithLargeStateErrorKind

stringaccount_id = 1

sf.near.type.v1.DelegateActionInvalidSignatureKind

sf.near.type.v1.DelegateActionSenderDoesNotMatchTxReceiverKind

stringsender_id = 1
stringreceiver_id = 2

sf.near.type.v1.DelegateActionExpiredKind

sf.near.type.v1.DelegateActionAccessKeyErrorKind

InvalidAccessKeyError

sf.near.type.v1.DelegateActionInvalidNonceKind

uint64delegate_nonce = 1
uint64ak_nonce = 2

sf.near.type.v1.DelegateActionNonceTooLargeKind

uint64delegate_nonce = 1
uint64upper_bound = 2

sf.near.type.v1.CurveKind

enum

ED25519 = 0

SECP256K1 = 1

sf.near.type.v1.Direction

enum

left = 0

right = 1

sf.near.type.v1.ExecutionMetadata

enum

ExecutionMetadataV1 = 0

sf.near.type.v1.FunctionCallErrorSer

enum

todo: add more detail?

CompilationError = 0

LinkError = 1

MethodResolveError = 2

WasmTrap = 3

WasmUnknownError = 4

HostError = 5

_EVMError = 6

ExecutionError = 7

sf.near.type.v1.InvalidTxError

enum

todo: add more detail?

InvalidAccessKeyError = 0

InvalidSignerId = 1

SignerDoesNotExist = 2

InvalidNonce = 3

NonceTooLarge = 4

InvalidReceiverId = 5

InvalidSignature = 6

NotEnoughBalance = 7

LackBalanceForState = 8

CostOverflow = 9

InvalidChain = 10

Expired = 11

ActionsValidation = 12

TransactionSizeExceeded = 13

sf.near.type.v1.ReceiptValidationError

enum

todo: add more detail?

InvalidPredecessorId = 0

InvalidReceiverAccountId = 1

InvalidSignerAccountId = 2

InvalidDataReceiverId = 3

ReturnedValueLengthExceeded = 4

NumberInputDataDependenciesExceeded = 5

ActionsValidationError = 6