Sync traces to a database with the contract ABI using Mirror.
Install Goldsky's CLI and log in
goldsky login
and paste your API key.
goldsky
to get started:
secret_name
. If you already created a secret, you can find it via the CLI command goldsky secret list
.decoded_logs.friendtech
.id
, block_number
and transaction_hash
. Since the columns
input
and output
are encoded we need to make use of the _gs_tx_decode to decode the data. This function takes the following parameters:
input
: as a second argument which refer to the data sent along with the message call.output
: as a third argument which refer to the data returned by the message call.decoded
which is a nested ROW with the properties event_param::TEXT[]
and event_signature::TEXT
. We create a second transform that reads from the resulting dataset of this first SELECT query to access the decoded data:
decoded IS NOT NULL
as a safety measure to discard processing potential issues in the decoding phase.
goldsky pipeline apply <yaml file>
raw_log
and raw_traces
Direct Indexing datasets available (see list).
Goldsky also provides alternative decoding methods:
decoded_logs
and decoded_traces