Resources
Decoded Events
The following events are decoded in the GoldRush Streaming API:
Transfer Event
Field | Type | Description |
---|---|---|
from | string | The source address |
to | string | The destination address |
amount | string | Unscaled token amount (scale by metadata.contract_decimals ) |
quote_rate_usd | string | Exchange rate of the token in USD |
quote_usd | string | The quote amount of the token in USD |
contract_metadata | object | Contract details including contract_name , contract_address , contract_decimals , and contract_ticker_symbol |
Swap Event
Field | Type | Description |
---|---|---|
token_in | string | The input token address |
token_out | string | The output token address |
amount_in | string | The amount of input tokens |
amount_out | string | The amount of output tokens |
Bridge Event
Field | Type | Description |
---|---|---|
type | string | The bridge transaction type |
typeString | string | Human-readable bridge transaction type |
from | string | The source address |
to | string | The destination address |
amount | string | Unscaled token amount (scale by metadata.contract_decimals ) |
quote_rate_usd | string | Exchange rate of the token in USD |
quote_usd | string | The quote amount of the token in USD |
contract_metadata | object | Contract details including contract_name , contract_address , contract_decimals , and contract_ticker_symbol |
Deposit Event
Field | Type | Description |
---|---|---|
from | string | The source address |
to | string | The destination address |
amount | string | Unscaled token amount (scale by metadata.contract_decimals ) |
quote_rate_usd | string | Exchange rate of the token in USD |
quote_usd | string | The quote amount of the token in USD |
contract_metadata | object | Contract details including contract_name , contract_address , contract_decimals , and contract_ticker_symbol |
Withdraw Event
Field | Type | Description |
---|---|---|
from | string | The source address |
to | string | The destination address |
amount | string | Unscaled token amount (scale by metadata.contract_decimals ) |
quote_rate_usd | string | Exchange rate of the token in USD |
quote_usd | string | The quote amount of the token in USD |
contract_metadata | object | Contract details including contract_name , contract_address , contract_decimals , and contract_ticker_symbol |
Approve Event
Field | Type | Description |
---|---|---|
spender | string | The address approved to spend tokens |
amount | string | Unscaled token amount (scale by metadata.contract_decimals ) |
quote_rate_usd | string | Exchange rate of the token in USD |
quote_usd | string | The quote amount of the token in USD |
contract_metadata | object | Contract details including contract_name , contract_address , contract_decimals , and contract_ticker_symbol |
Transaction Logs
Field | Type | Description |
---|---|---|
emitter_address | string | The address that emitted the log |
log_offset | integer | The offset of the log in the transaction |
data | string | The raw log data |
topics | array | Array of log topics |
Error Details
Field | Type | Description |
---|---|---|
message | string | Error message describing what went wrong |