Skip to main content
Version: Next

Class: ResponseParser

Constructors​

constructor​

• new ResponseParser(): ResponseParser

Returns​

ResponseParser

Methods​

parseGetBlockResponse​

â–¸ parseGetBlockResponse(res): GetBlockResponse

Parameters​

NameType
resBlockWithTxHashes

Returns​

GetBlockResponse

Defined in​

src/utils/responseParser/interface.ts:16


parseGetTransactionResponse​

â–¸ parseGetTransactionResponse(res): TransactionWithHash

Parameters​

NameType
resany

Returns​

TransactionWithHash

Defined in​

src/utils/responseParser/interface.ts:18


parseGetTransactionReceiptResponse​

â–¸ parseGetTransactionReceiptResponse(res): GetTransactionReceiptResponse

Parameters​

NameType
resany

Returns​

GetTransactionReceiptResponse

Defined in​

src/utils/responseParser/interface.ts:20


parseFeeEstimateResponse​

â–¸ parseFeeEstimateResponse(res): EstimateFeeResponse

Parameters​

NameType
res{ unit: "WEI" | "FRI" ; gas_consumed: string ; gas_price: string ; overall_fee: string ; data_gas_consumed: undefined | string ; data_gas_price: undefined | string }[]

Returns​

EstimateFeeResponse

Defined in​

src/utils/responseParser/interface.ts:22


parseCallContractResponse​

â–¸ parseCallContractResponse(res): CallContractResponse

Parameters​

NameType
resany

Returns​

CallContractResponse

Defined in​

src/utils/responseParser/interface.ts:24


parseInvokeFunctionResponse​

â–¸ parseInvokeFunctionResponse(res): Object

Parameters​

NameType
resany

Returns​

Object

NameType
transaction_hashstring

Defined in​

src/utils/responseParser/interface.ts:26


parseDeployContractResponse​

â–¸ parseDeployContractResponse(res): DeployContractResponse

Parameters​

NameType
resany

Returns​

DeployContractResponse

Defined in​

src/utils/responseParser/interface.ts:28


parseDeclareContractResponse​

â–¸ parseDeclareContractResponse(res): Object

Parameters​

NameType
resany

Returns​

Object

NameType
class_hashstring
transaction_hashstring

Defined in​

src/utils/responseParser/interface.ts:30


parseSimulateTransactionResponse​

â–¸ parseSimulateTransactionResponse(res): SimulateTransactionResponse

Parameters​

NameType
resany

Returns​

SimulateTransactionResponse

Defined in​

src/utils/responseParser/interface.ts:32