Skip to main content
Version: Next

Type Alias: FormatResponse

FormatResponse = object

Defined in: src/contract/types/index.type.ts:149

Advance formatting used to get js types data as result

Index Signature

[key: string]: any

Description

https://starknet-io.github.io/starknet.js/docs/guides/define_call_message/#formatresponse

Examples

// assign custom or existing method to resulting data
formatResponse: { balance: uint256ToBN },
// define resulting data js types
const formatAnswer = { id: 'number', description: 'string' };