cheeyoung-kekWormhole 2
    Updated 2022-08-08


    select
    a.TX_ID,
    b.block_timestamp,
    d.value as signers,
    instructions[0]:parsed:info:amount::float / POW(10,6) AS "Token amount",
    pre_token_balances[3]:mint::string as source_address,
    address_name,
    inner_instructions[0]:instructions[2]:parsed:info:mint::string as "Destination Token",
    a.program_id as contract_address,
    ROW_NUMBER() OVER (partition by b.tx_id ORDER BY signers) as "row number"
    from solana.core.fact_events a
    inner join solana.core.fact_transactions b
    on a.tx_id = b.tx_id
    left join solana.core.dim_labels c on b.pre_token_balances[3]:mint::string = c.address,
    table(flatten(input => signers)) d
    WHERE a.program_id = 'wormDTUJ6AWPNvk59vGQbDvGJmqbDTdgWgAqcLBCgUb'
    and b.succeeded = 'TRUE'
    and b.block_timestamp >= '2022-06-01'

    limit 100


    Run a query to Download Data