0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

dune query by solana pumpfun instruction code

Last updated at Posted at 2025-02-23
select
    account_arguments[8] as dev_addr,
    count(account_arguments[1]) as token_addr_count
from
    solana.instruction_calls
where
    executing_account = '6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P'
    and bytearray_substring (data, 1, 8) = 0x181ec828051c0777
    -- FROM_HEX('b712469c946da122')
    and tx_success = true
    AND block_time > NOW() - INTERVAL '30' day
    -- AND block_time BETWEEN date '2025-01-01' AND date '2025-01-31'
group by
    1
order by
    2 desc

create

181ec828051c0777

Buy

66063d1201daebea

Sell

33e685a4017f83ad

withdraw

b712469c946da122

python code

import re
from hashlib import sha256

def camel_to_snake(text):
    str1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', text)
    return re.sub('([a-z0-9])([A-Z])', r'\1_\2', str1).lower()

ix_name = "Buy"
ix_name = "Sell"
ix_name = "Create"
ix_name = "withdraw"

stuff = f"global:{camel_to_snake(ix_name)}"
encode = sha256(stuff.encode()).digest()[:8]

print("action: ", stuff)
print(encode.hex())

rust code

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?