View Source Ethers.Contracts.ENS.Resolver (Ethers v0.0.3)
Ethereum Name Service (ENS) Resolver Contract
Link to this section Summary
Functions
Executes ABI(bytes32 node, uint256 contentTypes)
on the contract.
Same as abi/3
but raises Ethers.ExecutionError
on errors.
Executes addr(bytes32 node)
on the contract.
Executes addr(bytes32 node, uint256 coinType)
on the contract.
Same as addr/2
but raises Ethers.ExecutionError
on errors.
Same as addr/3
but raises Ethers.ExecutionError
on errors.
Executes authorisations(bytes32, address, address)
on the contract.
Same as authorisations/4
but raises Ethers.ExecutionError
on errors.
Executes clearDNSZone(bytes32 node)
on the contract.
Same as clear_dns_zone/2
but raises Ethers.ExecutionError
on errors.
Prepares contract constructor values.
Executes contenthash(bytes32 node)
on the contract.
Same as contenthash/2
but raises Ethers.ExecutionError
on errors.
Default address of the contract. Returns nil
if not specified.
Executes dnsRecord(bytes32 node, bytes32 name, uint16 resource)
on the contract.
Same as dns_record/4
but raises Ethers.ExecutionError
on errors.
Executes hasDNSRecords(bytes32 node, bytes32 name)
on the contract.
Same as has_dns_records/3
but raises Ethers.ExecutionError
on errors.
Executes interfaceImplementer(bytes32 node, bytes4 interfaceID)
on the contract.
Same as interface_implementer/3
but raises Ethers.ExecutionError
on errors.
Executes multicall(bytes[] data)
on the contract.
Same as multicall/2
but raises Ethers.ExecutionError
on errors.
Executes name(bytes32 node)
on the contract.
Same as name/2
but raises Ethers.ExecutionError
on errors.
Executes pubkey(bytes32 node)
on the contract.
Same as pubkey/2
but raises Ethers.ExecutionError
on errors.
Executes setABI(bytes32 node, uint256 contentType, bytes data)
on the contract.
Same as set_abi/4
but raises Ethers.ExecutionError
on errors.
Executes setAddr(bytes32 node, address a)
on the contract.
Executes setAddr(bytes32 node, uint256 coinType, bytes a)
on the contract.
Same as set_addr/3
but raises Ethers.ExecutionError
on errors.
Same as set_addr/4
but raises Ethers.ExecutionError
on errors.
Executes setAuthorisation(bytes32 node, address target, bool isAuthorised)
on the contract.
Same as set_authorisation/4
but raises Ethers.ExecutionError
on errors.
Executes setContenthash(bytes32 node, bytes hash)
on the contract.
Same as set_contenthash/3
but raises Ethers.ExecutionError
on errors.
Executes setDNSRecords(bytes32 node, bytes data)
on the contract.
Same as set_dns_records/3
but raises Ethers.ExecutionError
on errors.
Executes setInterface(bytes32 node, bytes4 interfaceID, address implementer)
on the contract.
Same as set_interface/4
but raises Ethers.ExecutionError
on errors.
Executes setName(bytes32 node, string name)
on the contract.
Same as set_name/3
but raises Ethers.ExecutionError
on errors.
Executes setPubkey(bytes32 node, bytes32 x, bytes32 y)
on the contract.
Same as set_pubkey/4
but raises Ethers.ExecutionError
on errors.
Executes setText(bytes32 node, string key, string value)
on the contract.
Same as set_text/4
but raises Ethers.ExecutionError
on errors.
Executes supportsInterface(bytes4 interfaceID)
on the contract.
Same as supports_interface/2
but raises Ethers.ExecutionError
on errors.
Executes text(bytes32 node, string key)
on the contract.
Same as text/3
but raises Ethers.ExecutionError
on errors.
Link to this section Functions
@spec abi(<<_::256>> | <<_::528>>, non_neg_integer(), Keyword.t()) :: {:ok, [binary() | non_neg_integer()]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes ABI(bytes32 node, uint256 contentTypes)
on the contract.
Default action for this function is :call
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- contentTypes:
{:uint, 256}
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
{:uint, 256}
:bytes
@spec abi!(<<_::256>> | <<_::528>>, non_neg_integer(), Keyword.t()) :: [binary() | non_neg_integer()] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as abi/3
but raises Ethers.ExecutionError
on errors.
@spec addr(<<_::256>> | <<_::528>>, Keyword.t()) :: {:ok, [Ethers.Types.t_address()]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes addr(bytes32 node)
on the contract.
Default action for this function is :call
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
:address
@spec addr(<<_::256>> | <<_::528>>, non_neg_integer(), Keyword.t()) :: {:ok, [binary()]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes addr(bytes32 node, uint256 coinType)
on the contract.
Default action for this function is :call
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- coinType:
{:uint, 256}
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
:bytes
@spec addr!(<<_::256>> | <<_::528>>, Keyword.t()) :: [Ethers.Types.t_address()] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as addr/2
but raises Ethers.ExecutionError
on errors.
@spec addr!(<<_::256>> | <<_::528>>, non_neg_integer(), Keyword.t()) :: [binary()] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as addr/3
but raises Ethers.ExecutionError
on errors.
@spec authorisations( <<_::256>> | <<_::528>>, Ethers.Types.t_address(), Ethers.Types.t_address(), Keyword.t() ) :: {:ok, [boolean()]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes authorisations(bytes32, address, address)
on the contract.
Default action for this function is :call
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
{:bytes, 32}
:address
:address
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
:bool
@spec authorisations!( <<_::256>> | <<_::528>>, Ethers.Types.t_address(), Ethers.Types.t_address(), Keyword.t() ) :: [boolean()] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as authorisations/4
but raises Ethers.ExecutionError
on errors.
@spec clear_dns_zone(<<_::256>> | <<_::528>>, Keyword.t()) :: {:ok, [[]]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes clearDNSZone(bytes32 node)
on the contract.
Default action for this function is :send
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
@spec clear_dns_zone!(<<_::256>> | <<_::528>>, Keyword.t()) :: [[]] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as clear_dns_zone/2
but raises Ethers.ExecutionError
on errors.
@spec constructor(Ethers.Types.t_address()) :: binary()
Prepares contract constructor values.
To deploy a contracts see Ethers.deploy/3
.
parameters
Parameters
- _ens:
:address
@spec contenthash(<<_::256>> | <<_::528>>, Keyword.t()) :: {:ok, [binary()]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes contenthash(bytes32 node)
on the contract.
Default action for this function is :call
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
:bytes
@spec contenthash!(<<_::256>> | <<_::528>>, Keyword.t()) :: [binary()] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as contenthash/2
but raises Ethers.ExecutionError
on errors.
@spec default_address() :: Ethers.Types.t_address() | nil
Default address of the contract. Returns nil
if not specified.
To specify a default address see Ethers.Contract
@spec dns_record( <<_::256>> | <<_::528>>, <<_::256>> | <<_::528>>, non_neg_integer(), Keyword.t() ) :: {:ok, [binary()]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes dnsRecord(bytes32 node, bytes32 name, uint16 resource)
on the contract.
Default action for this function is :call
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- name:
{:bytes, 32}
- resource:
{:uint, 16}
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
:bytes
@spec dns_record!( <<_::256>> | <<_::528>>, <<_::256>> | <<_::528>>, non_neg_integer(), Keyword.t() ) :: [binary()] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as dns_record/4
but raises Ethers.ExecutionError
on errors.
@spec has_dns_records(<<_::256>> | <<_::528>>, <<_::256>> | <<_::528>>, Keyword.t()) :: {:ok, [boolean()]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes hasDNSRecords(bytes32 node, bytes32 name)
on the contract.
Default action for this function is :call
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- name:
{:bytes, 32}
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
:bool
@spec has_dns_records!(<<_::256>> | <<_::528>>, <<_::256>> | <<_::528>>, Keyword.t()) :: [boolean()] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as has_dns_records/3
but raises Ethers.ExecutionError
on errors.
@spec interface_implementer( <<_::256>> | <<_::528>>, <<_::32>> | <<_::80>>, Keyword.t() ) :: {:ok, [Ethers.Types.t_address()]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes interfaceImplementer(bytes32 node, bytes4 interfaceID)
on the contract.
Default action for this function is :call
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- interfaceID:
{:bytes, 4}
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
:address
@spec interface_implementer!( <<_::256>> | <<_::528>>, <<_::32>> | <<_::80>>, Keyword.t() ) :: [Ethers.Types.t_address()] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as interface_implementer/3
but raises Ethers.ExecutionError
on errors.
@spec multicall([binary()], Keyword.t()) :: {:ok, [[binary()]]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes multicall(bytes[] data)
on the contract.
Default action for this function is :send
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- data:
{:array, :bytes}
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
- bytes:
:array
@spec multicall!([binary()], Keyword.t()) :: [[binary()]] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as multicall/2
but raises Ethers.ExecutionError
on errors.
@spec name(<<_::256>> | <<_::528>>, Keyword.t()) :: {:ok, [String.t()]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes name(bytes32 node)
on the contract.
Default action for this function is :call
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
:string
@spec name!(<<_::256>> | <<_::528>>, Keyword.t()) :: [String.t()] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as name/2
but raises Ethers.ExecutionError
on errors.
@spec pubkey(<<_::256>> | <<_::528>>, Keyword.t()) :: {:ok, [(<<_::256>> | <<_::528>>) | <<_::256>> | <<_::528>>]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes pubkey(bytes32 node)
on the contract.
Default action for this function is :call
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
{:bytes, 32}
{:bytes, 32}
@spec pubkey!(<<_::256>> | <<_::528>>, Keyword.t()) :: [(<<_::256>> | <<_::528>>) | <<_::256>> | <<_::528>>] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as pubkey/2
but raises Ethers.ExecutionError
on errors.
@spec set_abi(<<_::256>> | <<_::528>>, non_neg_integer(), binary(), Keyword.t()) :: {:ok, [[]]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes setABI(bytes32 node, uint256 contentType, bytes data)
on the contract.
Default action for this function is :send
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- contentType:
{:uint, 256}
- data:
:bytes
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
@spec set_abi!(<<_::256>> | <<_::528>>, non_neg_integer(), binary(), Keyword.t()) :: [[]] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as set_abi/4
but raises Ethers.ExecutionError
on errors.
@spec set_addr(<<_::256>> | <<_::528>>, Ethers.Types.t_address(), Keyword.t()) :: {:ok, [[]]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes setAddr(bytes32 node, address a)
on the contract.
Default action for this function is :send
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- a:
:address
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
@spec set_addr(<<_::256>> | <<_::528>>, non_neg_integer(), binary(), Keyword.t()) :: {:ok, [[]]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes setAddr(bytes32 node, uint256 coinType, bytes a)
on the contract.
Default action for this function is :send
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- coinType:
{:uint, 256}
- a:
:bytes
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
@spec set_addr!(<<_::256>> | <<_::528>>, Ethers.Types.t_address(), Keyword.t()) :: [[]] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as set_addr/3
but raises Ethers.ExecutionError
on errors.
@spec set_addr!(<<_::256>> | <<_::528>>, non_neg_integer(), binary(), Keyword.t()) :: [[]] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as set_addr/4
but raises Ethers.ExecutionError
on errors.
@spec set_authorisation( <<_::256>> | <<_::528>>, Ethers.Types.t_address(), boolean(), Keyword.t() ) :: {:ok, [[]]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes setAuthorisation(bytes32 node, address target, bool isAuthorised)
on the contract.
Default action for this function is :send
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- target:
:address
- isAuthorised:
:bool
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
@spec set_authorisation!( <<_::256>> | <<_::528>>, Ethers.Types.t_address(), boolean(), Keyword.t() ) :: [[]] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as set_authorisation/4
but raises Ethers.ExecutionError
on errors.
@spec set_contenthash(<<_::256>> | <<_::528>>, binary(), Keyword.t()) :: {:ok, [[]]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes setContenthash(bytes32 node, bytes hash)
on the contract.
Default action for this function is :send
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- hash:
:bytes
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
@spec set_contenthash!(<<_::256>> | <<_::528>>, binary(), Keyword.t()) :: [[]] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as set_contenthash/3
but raises Ethers.ExecutionError
on errors.
@spec set_dns_records(<<_::256>> | <<_::528>>, binary(), Keyword.t()) :: {:ok, [[]]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes setDNSRecords(bytes32 node, bytes data)
on the contract.
Default action for this function is :send
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- data:
:bytes
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
@spec set_dns_records!(<<_::256>> | <<_::528>>, binary(), Keyword.t()) :: [[]] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as set_dns_records/3
but raises Ethers.ExecutionError
on errors.
@spec set_interface( <<_::256>> | <<_::528>>, <<_::32>> | <<_::80>>, Ethers.Types.t_address(), Keyword.t() ) :: {:ok, [[]]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes setInterface(bytes32 node, bytes4 interfaceID, address implementer)
on the contract.
Default action for this function is :send
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- interfaceID:
{:bytes, 4}
- implementer:
:address
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
@spec set_interface!( <<_::256>> | <<_::528>>, <<_::32>> | <<_::80>>, Ethers.Types.t_address(), Keyword.t() ) :: [[]] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as set_interface/4
but raises Ethers.ExecutionError
on errors.
@spec set_name(<<_::256>> | <<_::528>>, String.t(), Keyword.t()) :: {:ok, [[]]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes setName(bytes32 node, string name)
on the contract.
Default action for this function is :send
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- name:
:string
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
@spec set_name!(<<_::256>> | <<_::528>>, String.t(), Keyword.t()) :: [[]] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as set_name/3
but raises Ethers.ExecutionError
on errors.
@spec set_pubkey( <<_::256>> | <<_::528>>, <<_::256>> | <<_::528>>, <<_::256>> | <<_::528>>, Keyword.t() ) :: {:ok, [[]]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes setPubkey(bytes32 node, bytes32 x, bytes32 y)
on the contract.
Default action for this function is :send
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- x:
{:bytes, 32}
- y:
{:bytes, 32}
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
@spec set_pubkey!( <<_::256>> | <<_::528>>, <<_::256>> | <<_::528>>, <<_::256>> | <<_::528>>, Keyword.t() ) :: [[]] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as set_pubkey/4
but raises Ethers.ExecutionError
on errors.
@spec set_text(<<_::256>> | <<_::528>>, String.t(), String.t(), Keyword.t()) :: {:ok, [[]]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes setText(bytes32 node, string key, string value)
on the contract.
Default action for this function is :send
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- key:
:string
- value:
:string
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
@spec set_text!(<<_::256>> | <<_::528>>, String.t(), String.t(), Keyword.t()) :: [[]] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as set_text/4
but raises Ethers.ExecutionError
on errors.
@spec supports_interface(<<_::32>> | <<_::80>>, Keyword.t()) :: {:ok, [boolean()]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes supportsInterface(bytes4 interfaceID)
on the contract.
Default action for this function is :call
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- interfaceID:
{:bytes, 4}
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
:bool
@spec supports_interface!(<<_::32>> | <<_::80>>, Keyword.t()) :: [boolean()] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as supports_interface/2
but raises Ethers.ExecutionError
on errors.
@spec text(<<_::256>> | <<_::528>>, String.t(), Keyword.t()) :: {:ok, [String.t()]} | {:ok, Ethers.Types.t_hash()} | {:ok, Ethers.Contract.t_function_output()} | {:error, term()}
Executes text(bytes32 node, string key)
on the contract.
Default action for this function is :call
.
To override default action see Execution Options in Ethers.Contract
.
parameters
Parameters
- node:
{:bytes, 32}
- key:
:string
- overrides: Overrides and options for the call. See Execution Options in
Ethers.Contract
.
return-types
Return Types
:string
@spec text!(<<_::256>> | <<_::528>>, String.t(), Keyword.t()) :: [String.t()] | Ethers.Types.t_hash() | Ethers.Contract.t_function_output() | no_return()
Same as text/3
but raises Ethers.ExecutionError
on errors.