Web3MoveEx.Starcoin.Caller.Chain (web3_move_ex v0.3.8)

api about chain

TODO: impl others in https://www.postman.com/starcoinorg/workspace/starcoin-blockchain-api

Link to this section Summary

Link to this section Functions

Link to this function

get_block_by_number(endpoint, num)

Link to this function

get_id(endpoint)

Link to this function

get_info(endpoint, id \\ 100)

Link to this function

get_transaction(endpoint, tx_hash)

Get transaction by tx_hash

example

Example

iex> Web3MoveEx.Starcoin.Caller.Chain.get_transaction("http://localhost:9851", "0xa23138f12b9f8221227dfebda5001bef176f9fcc9ce0c3eab2928d0a342bc6f1") {:ok, %{id: 1, jsonrpc: "2.0", result: %{}}}

Link to this function

get_transaction_info(endpoint, tx_hash)

Get transaction info by tx_hash

example

Example

iex> Web3MoveEx.Starcoin.Caller.Chain.get_transaction_info("http://localhost:9851", "0xa23138f12b9f8221227dfebda5001bef176f9fcc9ce0c3eab2928d0a342bc6f1") {:ok, %{id: 1, jsonrpc: "2.0", result: %{}}}