Class: ResponseParser
Constructors​
constructor​
• new ResponseParser(): ResponseParser
Returns​
Methods​
parseGetBlockResponse​
â–¸ parseGetBlockResponse(res
): GetBlockResponse
Parameters​
Name | Type |
---|---|
res | BlockWithTxHashes |
Returns​
Defined in​
src/utils/responseParser/interface.ts:16
parseGetTransactionResponse​
â–¸ parseGetTransactionResponse(res
): TransactionWithHash
Parameters​
Name | Type |
---|---|
res | any |
Returns​
TransactionWithHash
Defined in​
src/utils/responseParser/interface.ts:18
parseGetTransactionReceiptResponse​
â–¸ parseGetTransactionReceiptResponse(res
): GetTransactionReceiptResponse
Parameters​
Name | Type |
---|---|
res | any |
Returns​
Defined in​
src/utils/responseParser/interface.ts:20
parseFeeEstimateResponse​
â–¸ parseFeeEstimateResponse(res
): EstimateFeeResponse
Parameters​
Name | Type |
---|---|
res | { unit : "WEI" | "FRI" ; gas_consumed : string ; gas_price : string ; overall_fee : string ; data_gas_consumed : undefined | string ; data_gas_price : undefined | string }[] |
Returns​
Defined in​
src/utils/responseParser/interface.ts:22
parseCallContractResponse​
â–¸ parseCallContractResponse(res
): CallContractResponse
Parameters​
Name | Type |
---|---|
res | any |
Returns​
Defined in​
src/utils/responseParser/interface.ts:24
parseInvokeFunctionResponse​
â–¸ parseInvokeFunctionResponse(res
): Object
Parameters​
Name | Type |
---|---|
res | any |
Returns​
Object
Name | Type |
---|---|
transaction_hash | string |
Defined in​
src/utils/responseParser/interface.ts:26
parseDeployContractResponse​
â–¸ parseDeployContractResponse(res
): DeployContractResponse
Parameters​
Name | Type |
---|---|
res | any |
Returns​
Defined in​
src/utils/responseParser/interface.ts:28
parseDeclareContractResponse​
â–¸ parseDeclareContractResponse(res
): Object
Parameters​
Name | Type |
---|---|
res | any |
Returns​
Object
Name | Type |
---|---|
class_hash | string |
transaction_hash | string |
Defined in​
src/utils/responseParser/interface.ts:30
parseSimulateTransactionResponse​
â–¸ parseSimulateTransactionResponse(res
): SimulateTransactionResponse
Parameters​
Name | Type |
---|---|
res | any |