View Source Signet.OpenChain (Signet v1.3.8)

API Client for [OpenChain.xyz](https://openchain.xyz] API.

Summary

Functions

Tries to lookup given signature of given type.

Looks up and tries to decode a given error message from its ABI-encoded form.

Looks up an error and decodes its values, returning both.

Functions

Link to this function

lookup(signature, type, opts \\ [])

View Source

Tries to lookup given signature of given type.

Examples

iex> Signet.OpenChain.lookup(<<8, 195, 121, 160>>, :function)
{:ok, "Error(string)"}
Link to this function

lookup_error(arg1, opts \\ [])

View Source

Looks up and tries to decode a given error message from its ABI-encoded form.

Examples

iex> Signet.OpenChain.lookup_error(~h[0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001b43616c6c6572206e6f74206174746573746572206d616e616765720000000000])
{:ok, ["Caller not attester manager"]}
Link to this function

lookup_error_and_values(arg1, opts \\ [])

View Source

Looks up an error and decodes its values, returning both.

## Examples

    iex> Signet.OpenChain.lookup_error_and_values(~h[0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001b43616c6c6572206e6f74206174746573746572206d616e616765720000000000])
    {:ok, "Error(string)", ["Caller not attester manager"]}