Web3MoveEx.Aptos.RPC (web3_move_ex v0.1.2)

Copy From: https://github.com/myastrallabs/stormstout

Link to this section Summary

Link to this section Functions

Link to this function

check_transaction_by_hash(client, hash, times \\ 3)

Link to this function

connect(endpoint \\ "https://testnet.aptoslabs.com/v1")

Link to this function

get_account(client, address)

Link to this function

get_account_resource(client, address, resource_type, query \\ [])

Link to this function

get_account_resources(client, address, query \\ [])

Link to this function

get_collection_data(client, account, collection_name)

= AptosRPC.connect() {:ok, res} = Aptos.RPC.get_collection_data(

client,
"0xdc4e806913a006d86da8327a079d794435e2e3117fd418062ddf43943d663490",
"DummyDog"

)

Link to this function

get_events(client, event_key)

Link to this function

get_events(client, address, event_handle, field, query \\ [limit: 10])

Link to this function

get_table_item(client, table_handle, table_key)

Link to this function

get_token_data(client, creator, collection_name, token_name)

= AptosRPC.connect() {:ok, result} = Aptos.RPC.get_token_data(

  client,
  "0xdc4e806913a006d86da8327a079d794435e2e3117fd418062ddf43943d663490",
  "DummyDog",
  "DummyDog 1"
)
Link to this function

get_transaction_by_hash(client, hash)

Link to this function

ledger_information(client)