The following events are decoded in the GoldRush Streaming API:

Transfer Event

FieldTypeDescription
fromstringThe source address
tostringThe destination address
amountstringUnscaled token amount (scale by metadata.contract_decimals)
quote_rate_usdstringExchange rate of the token in USD
quote_usdstringThe quote amount of the token in USD
contract_metadataobjectContract details including contract_name, contract_address, contract_decimals, and contract_ticker_symbol

Swap Event

FieldTypeDescription
token_instringThe input token address
token_outstringThe output token address
amount_instringThe amount of input tokens
amount_outstringThe amount of output tokens

Bridge Event

FieldTypeDescription
typestringThe bridge transaction type
typeStringstringHuman-readable bridge transaction type
fromstringThe source address
tostringThe destination address
amountstringUnscaled token amount (scale by metadata.contract_decimals)
quote_rate_usdstringExchange rate of the token in USD
quote_usdstringThe quote amount of the token in USD
contract_metadataobjectContract details including contract_name, contract_address, contract_decimals, and contract_ticker_symbol

Deposit Event

FieldTypeDescription
fromstringThe source address
tostringThe destination address
amountstringUnscaled token amount (scale by metadata.contract_decimals)
quote_rate_usdstringExchange rate of the token in USD
quote_usdstringThe quote amount of the token in USD
contract_metadataobjectContract details including contract_name, contract_address, contract_decimals, and contract_ticker_symbol

Withdraw Event

FieldTypeDescription
fromstringThe source address
tostringThe destination address
amountstringUnscaled token amount (scale by metadata.contract_decimals)
quote_rate_usdstringExchange rate of the token in USD
quote_usdstringThe quote amount of the token in USD
contract_metadataobjectContract details including contract_name, contract_address, contract_decimals, and contract_ticker_symbol

Approve Event

FieldTypeDescription
spenderstringThe address approved to spend tokens
amountstringUnscaled token amount (scale by metadata.contract_decimals)
quote_rate_usdstringExchange rate of the token in USD
quote_usdstringThe quote amount of the token in USD
contract_metadataobjectContract details including contract_name, contract_address, contract_decimals, and contract_ticker_symbol

Transaction Logs

FieldTypeDescription
emitter_addressstringThe address that emitted the log
log_offsetintegerThe offset of the log in the transaction
datastringThe raw log data
topicsarrayArray of log topics

Error Details

FieldTypeDescription
messagestringError message describing what went wrong