Available functions

getProvider

Returns information about the dAPI provider, including who this provider is, the version of their dAPI, and the NEP that the interface is compatible with.

getNetworks

Returns a list of available provider networks

getAccount

Returns connected account address.

getPublicKey

Returns connected account public key.

getNodeCount

Returns the number of nodes in the network.

getBlockHeight

Returns the block height of the network.

getMerkleProof

Returns the Merkle Proof for a given transaction hash.


Transaction ID:

getTransaction

Returns the transaction JSON for a given transaction hash.


Transaction ID:

getBlock

Returns information about a block a given block height or hash.


Block height or hash:

getSmartCodeEvent

Returns information about a block a given block height or hash.


Transaction ID:

getContract

Returns information about a given smart contract.


Script hash:

getStorage

Reads the raw value in smart contract storage.

Script hash:


Key:

getBalance

Returns the ONT and ONG balance for a given address.

getBlockHeightByTxHash

Returns the block hight that a given tx was executed in.

getAllowance

Reads the raw value in smart contract storage.

Asset:


From address:


To address:

invokeRead

Execute a contract invocation in read-only mode.

Script hash:


Operation:


Arguments:

invoke

Execute a contract invocation.


Script hash:


Operation:


Arguments:


Gas price override: (Optional)


Gas limit override: (Optional)


deploy

Deploy a smart contract.


Name:


Version:


Author:


Email:


Description:


NeedStorage:


GasPrice (optional):


GasLimit (optional):


Code:


send

Invoke a transfer of a specified amount of a given asset from the connected account to another account.


To address:


Asset:


Amount:


signMessage

Sign an arbitrary message.

Message:

verifyMessage

Verify a message signature.

Message:


Signature:


Public Key:


TestNet ONG Request

This is not a part of the Ontology dapi, but is a request for 100 testnet ONG. Only one request can be submitted per address. If you have previously received testnet ONG from this faucet before, please change accounts and request again.

Output

Utils

Utils

Hex String <===> String
68656c6c6f <===> hello
Hex string:
=>
String:
=>
Hex String <===> Integer
00e1f505 <===> 100000000
Hex string:
=>
Integer:
=>
Big endian <===> Little endian
bc99b2a477e28581b2fd04249ba27599ebd736d3 <===> d336d7eb9975a29b2404fdb28185e277a4b299bc
Hex string:
=>
Address <===> ScriptHash
Ab2fvZdmnM4HwDgVbdBrbTLz1wK5TcEyhU <===> d336d7eb9975a29b2404fdb28185e277a4b299bc
Address:
=>
ScriptHash:
=>