Versions in this module Expand all Collapse all v0 v0.0.11 Oct 27, 2022 Changes in this version + const ED25519 + const SECP256K1 + func CombineHash(hash1 []byte, hash2 []byte) []byte + type AccessKey struct + Nonce uint64 + Permission AccessKeyPermission + type AccessKeyPermission struct + Enum borsh.Enum + FullAccess borsh.Enum + FunctionCall FunctionCallPermission + type AccessKeyResponse struct + BlockHash string + BlockHeight int64 + Error string + Nonce int64 + Permission string + type Account struct + Amount BigInt + BlockHash CryptoHash + CodeHash CryptoHash + Height int64 + Locked BigInt + StoragePaidAt int64 + StorageUsage int64 + type AccountDoesNotExist struct + AccountId AccountId + type AccountId string + type Action struct + AddKey AddKey + CreateAccount borsh.Enum + DeleteAccount DeleteAccount + DeleteKey DeleteKey + DeployContract DeployContract + Enum borsh.Enum + FunctionCall FunctionCall + Stake Stake + Transfer Transfer + type ActionError struct + Index uint64 + Kind Kind + type ActionView struct + AddKey AddKey + CreateAccount borsh.Enum + DeleteAccount DeleteAccount + DeleteKey DeleteKey + DeployContract DeployContract + Enum borsh.Enum + FunctionCall FunctionCallView + Stake Stake + Transfer Transfer + type AddKey struct + AccessKey AccessKey + PublicKey PublicKey + type ApprovalMessage struct + PreviousBlockHash CryptoHash + PreviousBlockHeight int64 + TargetHeight int64 + Type []byte + type BigInt big.Int + func NewBigInt(bigInt string) BigInt + func (b *BigInt) UnmarshalJSON(p []byte) error + type Block struct + Author string + Chunks []Chunk + Header Header + func (b *Block) ComputeHash(PreviousBlockHash []byte, innerLite HeaderInnerLite, innerRest HeaderInnerRest) ([]byte, error) + func (b *Block) ComputeInnerHash(innerLite HeaderInnerLite, innerRest HeaderInnerRest) ([]byte, error) + func (b *Block) Hash() *CryptoHash + func (b *Block) Height() int64 + func (b *Block) InnerLite() HeaderInnerLite + func (b *Block) InnerRest() HeaderInnerRest + func (b *Block) RlpSerialize() ([]byte, error) + func (b *Block) SerializableHeader() SerializableHeader + type BlockNotification struct + func NewBlockNotification(offset int64) *BlockNotification + func (bn *BlockNotification) Block() *Block + func (bn *BlockNotification) Offset() int64 + func (bn *BlockNotification) Receipts() []*chain.Receipt + func (bn *BlockNotification) SetBlock(block Block) + func (bn *BlockNotification) SetReceipts(receipts []*chain.Receipt) + type BlockProducer struct + AccountId AccountId + PublicKey PublicKey + Stake BigInt + ValidatorStakeStructVersion ValidatorStakeStructVersion + type BmcStatus struct + BMRIndex uint + BlockIntervalDst uint + BlockIntervalSrc uint + CurrentHeight uint64 + DelayLimit uint + MaxAggregation uint + RotateHeight uint64 + RotateTerm uint + RxHeight uint64 + RxHeightSrc uint64 + RxSeq uint64 + TxSeq uint64 + Verifier AccountId + type BmvStatus struct + Height int64 + LastHeight int64 + Offset int64 + type CallFunction struct + AccountId AccountId + ArgumentsB64 string + Finality string + MethodName string + RequestType string + type CallFunctionResponse struct + BlockHash string + BlockHeight int64 + Result []byte + type Cause struct + ReceiptHash CryptoHash + Type string + type ChainStatus struct + ChainId string + SyncInfo ChainSyncInfo + type ChainSyncInfo struct + LatestBlockHash CryptoHash + LatestBlockHeight int64 + LatestBlockTime string + Syncing bool + type Change struct + Cause Cause + Data ChangeData + Type string + type ChangeData struct + AccountId AccountId + KeyBase64 string + ValueBase64 string + type Chunk struct + ChunkHash CryptoHash + EncodedLength uint + EncodedMerkleRoot CryptoHash + HeightCreated uint + HeightIncluded uint + OutcomeRoot CryptoHash + OutgoingReceiptsRoot CryptoHash + PrevStateRoot CryptoHash + PreviousBlockHash CryptoHash + ShardId uint + Signature Signature + TxRoot CryptoHash + type ChunkHeader struct + Header Chunk + Transactions []Transaction + type ContractStateChange struct + BlockHash CryptoHash + Changes []Change + type CryptoHash [32]byte + func NewCryptoHash(hash string) CryptoHash + func (c *CryptoHash) Base58Encode() string + func (c *CryptoHash) UnmarshalJSON(p []byte) error + type DeleteAccount struct + BeneficiaryID string + type DeleteKey struct + PublicKey PublicKey + type DeployContract struct + Code []byte + type ExecutionOutcomeView struct + ExecutorId string + GasBurnt uint64 + Logs []string + ReceiptIds []CryptoHash + Status ExecutionStatus + TokensBurnt string + type ExecutionOutcomeWithIdView struct + BlockHash CryptoHash + Outcome ExecutionOutcomeView + Proofs MerklePath + ReceiptId CryptoHash + type ExecutionStatus struct + Failure Failure + SuccessReceiptId CryptoHash + SuccessValue string + Unknown string + type Failure struct + ActionError ActionError + type FunctionCall struct + Args []byte + Deposit big.Int + Gas uint64 + MethodName string + type FunctionCallError struct + ExecutionError string + type FunctionCallPermission struct + Allowance *big.Int + MethodNames []string + ReceiverId string + type FunctionCallView struct + Args []byte + Deposit BigInt + Gas uint64 + MethodName string + type Header struct + Approvals []Signature + BlockMerkleRoot CryptoHash + BlockOrdinal uint64 + ChallengesResult []string + ChallengesRoot []byte + ChunkHeadersRoot CryptoHash + ChunkMask []bool + ChunkReceiptsRoot CryptoHash + ChunkTransactionRoot CryptoHash + ChunksIncluded uint8 + EpochId CryptoHash + EpochSyncDataHash CryptoHash + GasPrice BigInt + Hash CryptoHash + Height int64 + LastDSFinalBlock CryptoHash + LastFinalBlock CryptoHash + LatestProtocolVersion uint32 + NextBlockProducerHash CryptoHash + NextEpochId CryptoHash + OutcomeRoot CryptoHash + PreviousBlockHash CryptoHash + PreviousHeight int64 + PreviousStateRoot CryptoHash + RandomValue CryptoHash + Signature Signature + Timestamp Timestamp + TotalSupply BigInt + ValidatorProposals []BlockProducer + type HeaderInnerLite struct + BlockMerkleRoot [32]byte + EpochId [32]byte + Height uint64 + NextBlockProducerHash [32]byte + NextEpochId [32]byte + OutcomeRoot [32]byte + PreviousStateRoot [32]byte + Timestamp uint64 + func (h HeaderInnerLite) BorshSerialize() ([]byte, error) + type HeaderInnerRest struct + Approvals []Signature + BlockOrdinal uint64 + ChallengesResult []string + ChallengesRoot []byte + ChunkHeadersRoot [32]byte + ChunkMask []bool + ChunkReceiptsRoot [32]byte + ChunkTransactionRoot [32]byte + EpochSyncDataHash [32]byte + GasPrice BigInt + LastDSFinalBlock [32]byte + LastFinalBlock [32]byte + LatestProtocolVersion uint32 + PreviousHeight uint64 + RandomValue [32]byte + TotalSupply BigInt + ValidatorProposals []BlockProducer + func (h HeaderInnerRest) BorshSerialize() ([]byte, error) + type Kind struct + AccountDoesNotExist AccountDoesNotExist + FunctionCallError FunctionCallError + type MerklePath []MerklePathItem + type MerklePathItem struct + Direction string + Hash CryptoHash + type NextBlockProducers []BlockProducer + func (nbps *NextBlockProducers) UnmarshalJSON(p []byte) error + type PublicKey struct + Data [32]byte + KeyType uint8 + func NewPublicKeyFromED25519(pk ed25519.PublicKey) PublicKey + func (pk *PublicKey) Base58Encode() string + func (pk *PublicKey) UnmarshalJSON(p []byte) error + type ReceiptProof struct + BlockProof MerklePath + OutComeProof ExecutionOutcomeWithIdView + OutComeRootProof MerklePath + type SerializableHeader struct + InnerLite HeaderInnerLite + InnerRest HeaderInnerRest + PreviousBlockHash [32]byte + Signature Signature + type Signature struct + Data [64]byte + KeyType uint8 + func (s *Signature) Bytes() []byte + func (s *Signature) UnmarshalJSON(p []byte) error + func (s Signature) Base58Encode() string + type Stake struct + PublicKey PublicKey + Stake big.Int + type Timestamp uint64 + func (t *Timestamp) UnmarshalJSON(p []byte) error + type Transaction struct + Actions []Action + BlockHash CryptoHash + Nonce int + PublicKey PublicKey + ReceiverId AccountId + Signature Signature + SignerId AccountId + Txid CryptoHash + func (t *Transaction) Payload(wallet *wallet.NearWallet) (string, error) + type TransactionResult struct + ReceiptsOutcome []ExecutionOutcomeWithIdView + Status ExecutionStatus + Transaction TransactionView + TransactionOutcome ExecutionOutcomeWithIdView + type TransactionView struct + Actions []ActionView + Nonce int + PublicKey PublicKey + ReceiverId AccountId + Signature Signature + SignerId AccountId + Txid CryptoHash + type Transfer struct + Deposit big.Int + type ValidatorStakeStructVersion []byte + func (vs *ValidatorStakeStructVersion) UnmarshalJSON(p []byte) error v0.0.10 Sep 26, 2022