Versions in this module Expand all Collapse all v0 v0.2.0 Sep 6, 2022 GO-2025-3583 GO-2025-3583: Nethermind Juno Potential Denial of Service (DoS) via Integer Overflow in github.com/NethermindEth/juno Changes in this version + var ErrorBlockNotFound = fmt.Errorf("block not found") + func TxnIdentifier(txHash, txId string) map[string]string + type BlockNumber int64 + func (x *BlockNumber) IsPending() bool + func (x *BlockNumber) UnmarshalJSON(data []byte) error + type Client struct + BaseAPI string + BaseURL *url.URL + UserAgent string + func NewClient(baseURL, baseAPI string, client *HttpClient) *Client + func (c Client) CallContract(invokeFunc InvokeFunction, blockHash, blockNumber string) (*map[string][]string, error) + func (c Client) CallEstimateFeeWithBody(blockIdentifier map[string]string, reqBody map[string]interface{}) (*EstimateFeeResponse, error) + func (c Client) EstimateTransactionFee(contractAddress, entryPointSelector, callData, signature string) (*EstimateFeeResponse, error) + func (c Client) GetBlock(blockHash, blockNumber string) (*StarknetBlock, error) + func (c Client) GetBlockHashById(blockID string) (*string, error) + func (c Client) GetBlockIDByHash(blockHash string) (*string, error) + func (c Client) GetCode(contractAddress, blockHash, blockNumber string) (*CodeInfo, error) + func (c Client) GetContractAddresses() (*ContractAddresses, error) + func (c Client) GetFullContract(contractAddress, blockHash, blockNumber string) (map[string]interface{}, error) + func (c Client) GetFullContractRaw(contractAddress, blockHash, blockNumber string) (*json.RawMessage, error) + func (c Client) GetStateUpdate(blockHash, blockNumber string) (*StateUpdateResponse, error) + func (c Client) GetStorageAt(contractAddress, key, blockHash, blockNumber string) (*StorageInfo, error) + func (c Client) GetTransaction(txHash, txID string) (*TransactionInfo, error) + func (c Client) GetTransactionHashByID(txID string) (*string, error) + func (c Client) GetTransactionIDByHash(txHash string) (*string, error) + func (c Client) GetTransactionReceipt(txHash, txID string) (*TransactionReceipt, error) + func (c Client) GetTransactionStatus(txHash, txID string) (*TransactionStatus, error) + func (c Client) GetTransactionTrace(txHash, txID string) (*TransactionTrace, error) + type CodeInfo struct + Abi feeder.Abi + Bytecode []string + type ContractAddresses struct + GpsStatementVerifier string + Starknet string + type DeployedContract struct + Address string + ContractHash string + type EstimateFeeResponse struct + type Event struct + Data []string + FromAddress string + Keys []string + type ExecutionResources struct + BuiltinInstanceCounter map[string]int64 + NMemoryHoles int64 + NSteps int64 + type Fee struct + Amount int + GasPrice int + GasUsage int + OverallFee int + Unit string + type HttpClient interface + Do func(*http.Request) (*http.Response, error) + type InvokeFunction struct + CallType string + Calldata []string + CallerAddress string + ClassHash string + CodeAddress string + ContractAddress string + EntryPointSelector string + EntryPointType string + Events []Event + InternalCalls []string + MaxFee string + Messages []string + Result []string + Selector string + Signature []int + Version int + type KV struct + Key string + Value string + type L1ToL2Message struct + FromAddress string + Nonce string + Payload []string + Selector string + ToAddress string + type L2ToL1Message struct + FromAddress string + Payload []string + ToAddress string + type StarknetBlock struct + BlockHash string + BlockNumber BlockNumber + GasPrice string + OldStateRoot string + ParentBlockHash string + SequencerAddress string + StateRoot string + Status string + Timestamp int64 + TransactionReceipts []TransactionExecution + Transactions []TxnSpecificInfo + type StarknetGeneralConfig struct + CairoUsageResourceFeeWeights map[string]float64 + ChainID string + ContractStorageCommitmentTreeHeight int64 + EventCommitmentTreeHeight int + GlobalStateCommitmentTreeHeight int64 + InvokeTxMaxNSteps int64 + SequencerAddress int64 + TxCommitmentTreeHeight int + type StateDiff struct + DeployedContracts []DeployedContract + StorageDiffs map[string][]KV + type StateUpdateResponse struct + BlockHash string + NewRoot string + OldRoot string + StateDiff StateDiff + type StorageInfo string + type TransactionExecution struct + ActualFee string + Events []Event + ExecutionResources ExecutionResources + L1ToL2Message *L1ToL2Message + L2ToL1Messages []L2ToL1Message + TransactionHash string + TransactionIndex int64 + type TransactionFailureReason struct + Code string + ErrorMsg string + TxID int64 + type TransactionInBlockInfo struct + BlockNumber int64 + TransactionIndex int64 + type TransactionInfo struct + Transaction TxnSpecificInfo + type TransactionReceipt struct + Transaction TxnSpecificInfo + type TransactionStatus struct + BlockHash string + Status string + TxStatus string + type TransactionTrace struct + Signature []string + type TxnSpecificInfo struct + Calldata []string + ClassHash string + ConstructorCalldata []string + ContractAddress string + ContractAddressSalt string + EntryPointSelector string + EntryPointType string + MaxFee string + Nonce string + SenderAddress string + Signature []string + TransactionHash string + Type string + Version string