Versions in this module Expand all Collapse all v0 v0.0.1 May 20, 2021 Changes in this version + func ContextWithKeyPair(ctx context.Context, keyPair key.KeyPair) context.Context + type AccessKey struct + Nonce types.Nonce + Permission AccessKeyPermission + func (ak *AccessKey) UnmarshalJSON(b []byte) (err error) + type AccessKeyList struct + Keys []AccessKeyViewInfo + type AccessKeyPermission struct + FullAccess bool + FunctionCall FunctionCallPermission + func (akp *AccessKeyPermission) UnmarshalJSON(b []byte) (err error) + type AccessKeyView struct + BlockHash hash.CryptoHash + BlockHeight uint64 + type AccessKeyViewInfo struct + AccessKey AccessKey + PublicKey key.Base58PublicKey + type BlockHeaderView struct + Approvals []*signature.Base58Signature + BlockMerkleRoot hash.CryptoHash + ChallengesResult ChallengesResult + ChallengesRoot hash.CryptoHash + ChunkHeadersRoot hash.CryptoHash + ChunkMask []bool + ChunkReceiptsRoot hash.CryptoHash + ChunkTxRoot hash.CryptoHash + ChunksIncluded uint64 + EpochID hash.CryptoHash + GasPrice types.Balance + Hash hash.CryptoHash + Height types.BlockHeight + LastDSFinalBlock hash.CryptoHash + LastFinalBlock hash.CryptoHash + LatestProtocolVersion uint64 + NextBPHash hash.CryptoHash + NextEpochID hash.CryptoHash + OutcomeRoot hash.CryptoHash + PrevHash hash.CryptoHash + PrevStateRoot hash.CryptoHash + RandomValue hash.CryptoHash + RentPaid types.Balance + Signature signature.Base58Signature + Timestamp uint64 + TimestampNanosec types.TimeNanos + TotalSupply types.Balance + ValidatorProposals []ValidatorStakeView + ValidatorReward types.Balance + type BlockView struct + Author types.AccountID + Chunks []ChunkHeaderView + Header BlockHeaderView + type ChallengesResult = []SlashedValidator + type ChunkHeaderView struct + BalanceBurnt types.Balance + ChunkHash hash.CryptoHash + EncodedLength uint64 + EncodedMerkleRoot hash.CryptoHash + GasLimit types.Gas + GasUsed types.Gas + HeightCreated types.BlockHeight + HeightIncluded types.BlockHeight + OutcomeRoot hash.CryptoHash + OutgoingReceiptsRoot hash.CryptoHash + PrevBlockHash hash.CryptoHash + PrevStateRoot json.RawMessage + RentPaid types.Balance + ShardID types.ShardID + Signature signature.Base58Signature + TxRoot hash.CryptoHash + ValidatorProposals []ValidatorStakeView + ValidatorReward types.Balance + type Client struct + RPCClient jsonrpc.Client + func NewClient(networkAddr string) (client Client, err error) + func (c *Client) AccessKeyView(ctx context.Context, accountID types.AccountID, publicKey key.Base58PublicKey, ...) (resp AccessKeyView, err error) + func (c *Client) AccessKeyViewChanges(ctx context.Context, accountID types.AccountID, publicKey key.Base58PublicKey, ...) (res jsonrpc.Response, err error) + func (c *Client) AccessKeyViewChangesAll(ctx context.Context, accountIDs []types.AccountID, ...) (res jsonrpc.Response, err error) + func (c *Client) AccessKeyViewList(ctx context.Context, accountID types.AccountID, ...) (resp AccessKeyList, err error) + func (c *Client) AccountView(ctx context.Context, accountID types.AccountID, ...) (res jsonrpc.Response, err error) + func (c *Client) AccountViewChanges(ctx context.Context, accountIDs []types.AccountID, ...) (res jsonrpc.Response, err error) + func (c *Client) BlockChanges(ctx context.Context, block block.BlockCharacteristic) (res jsonrpc.Response, err error) + func (c *Client) BlockDetails(ctx context.Context, block block.BlockCharacteristic) (resp BlockView, err error) + func (c *Client) ChunkDetails(ctx context.Context, chunkHash hash.CryptoHash) (res jsonrpc.Response, err error) + func (c *Client) ContractViewCallFunction(ctx context.Context, accountID, methodName, argsBase64 string, ...) (res jsonrpc.Response, err error) + func (c *Client) ContractViewCodeChanges(ctx context.Context, accountIDs []types.AccountID, ...) (res jsonrpc.Response, err error) + func (c *Client) ContractViewState(ctx context.Context, accountID types.AccountID, prefixBase64 string, ...) (res jsonrpc.Response, err error) + func (c *Client) ContractViewStateChanges(ctx context.Context, accountIDs []types.AccountID, keyPrefixBase64 string, ...) (res jsonrpc.Response, err error) + func (c *Client) GasPriceView(ctx context.Context, block block.BlockCharacteristic) (res jsonrpc.Response, err error) + func (c *Client) GenesisConfig(ctx context.Context) (res jsonrpc.Response, err error) + func (c *Client) NetworkAddr() string + func (c *Client) NetworkInfo(ctx context.Context) (res jsonrpc.Response, err error) + func (c *Client) NetworkStatusValidators(ctx context.Context) (res jsonrpc.Response, err error) + func (c *Client) NetworkStatusValidatorsDetailed(ctx context.Context, block block.BlockCharacteristic) (res jsonrpc.Response, err error) + func (c *Client) RPCTransactionSend(ctx context.Context, signedTxnBase64 string) (resp hash.CryptoHash, err error) + func (c *Client) RPCTransactionSendAwait(ctx context.Context, signedTxnBase64 string) (resp FinalExecutionOutcomeView, err error) + func (c *Client) TransactionSend(ctx context.Context, from, to types.AccountID, actions []action.Action, ...) (res hash.CryptoHash, err error) + func (c *Client) TransactionSendAwait(ctx context.Context, from, to types.AccountID, actions []action.Action, ...) (res FinalExecutionOutcomeView, err error) + func (c *Client) TransactionStatus(ctx context.Context, tx hash.CryptoHash, sender types.AccountID) (resp FinalExecutionOutcomeView, err error) + func (c *Client) TransactionStatusWithReceipts(ctx context.Context, tx hash.CryptoHash, sender types.AccountID) (resp FinalExecutionOutcomeWithReceiptView, err error) + type ExecutionOutcomeView struct + ExecutorID types.AccountID + GasBurnt types.Gas + Logs []string + ReceiptIDs []hash.CryptoHash + Status TransactionStatus + TokensBurnt types.Balance + type ExecutionOutcomeWithIdView struct + BlockHash hash.CryptoHash + ID hash.CryptoHash + Outcome ExecutionOutcomeView + Proof MerklePath + type FinalExecutionOutcomeView struct + ReceiptsOutcome []ExecutionOutcomeWithIdView + Status TransactionStatus + Transaction SignedTransactionView + TransactionOutcome ExecutionOutcomeWithIdView + type FinalExecutionOutcomeWithReceiptView struct + Receipts []ReceiptView + type FunctionCallPermission struct + Allowance *types.Balance + MethodNames []string + ReceiverID types.AccountID + type MerklePath = []MerklePathItem + type MerklePathItem struct + Direction string + Hash hash.CryptoHash + type ReceiptView struct + PredecessorId types.AccountID + Receipt json.RawMessage + ReceiptID hash.CryptoHash + ReceiverID types.AccountID + type SignedTransactionView struct + Actions []action.Action + Hash hash.CryptoHash + Nonce types.Nonce + PublicKey key.Base58PublicKey + ReceiverID types.AccountID + Signature signature.Base58Signature + SignerID types.AccountID + type SlashedValidator struct + AccountID types.AccountID + IsDoubleSign bool + type TransactionOpt func(context.Context, *transactionCtx) error + func WithBlockCharacteristic(block block.BlockCharacteristic) TransactionOpt + func WithBlockHash(hash hash.CryptoHash) TransactionOpt + func WithKeyNonce(nonce types.Nonce) TransactionOpt + func WithKeyPair(keyPair key.KeyPair) TransactionOpt + func WithLatestBlock() TransactionOpt + type TransactionStatus struct + Failure json.RawMessage + SuccessReceiptID string + SuccessValue string + type ValidatorStakeView struct + AccountID types.AccountID + PublicKey key.PublicKey + Stake types.Balance