These are read-only api to get information from blockchain. These apis don't change the blockchain data.
Provides few high-level methods to get block information easily. The implementation internally uses adminApi to get block information
Provides transaction specific methods. All methods in this api are read-only. That means they don't change the blockchain state. Please refer to txnApi in Mutation for methods that are used to change blockchain's state.
Provides account related information For account manipulation, use accountApi in Mutation.
Provides methods to contact with Aion kernel for certain purpose. It provides read-only apis. For manipulation, refer to adminApi in Mutation.
Provides methods for fetching blockchain specific details such as blocks and transactions.
Provides methods for fetching the Aion blockchain network status and the specific information.
This api is an interface for the class Wallet. Assists in account related interactions.
This api provides the user with convenient methods of encoding and decoding contract calls and transactions from the Aion Kernel. This api can be used to deploy a smart contract and invoke smart contract's method.
Using Mutation queries, user can change the state in blockchain. e.g; post transaction, account unlock, contract deploy and more.
Provides methods to manipulate accounts.
Provides methods specific to Wallet mutation.
Provides transaction specific mutation methods.
Provide contract specific methods like contract deploy, contract method execution.
Get blocks starting from the block number passed through "before" parameter. Returns: If first=n & before=blkNumber, n number of blocks before specified blkNumber If before = -1, n number of recent blocks.
Arguments: first - No of blocks to return, before - start block number
Transaction details for a given transaction hash. Arguments txHash- Transaction Hash
Get transactions starting from the block number passed through "before" parameter. Returns: If first=n & before=blkNumber, n number of transactions before specified blkNumber If before = -1, n number of recent transactions.
Arguments: before - Start block number, first - number of transactions to fetch
Estimates the Nrg required to execute transaction.
Arguments: code- Contract source code
Estimates the Nrg required to execute transaction.
Arguments: txArgs - Object of TxArgsInput
Retrieves the compiled code for a given contract at given blockNumber or the compiled code with checking latest block if blockNumber is not passed.
Agruments: address - Deployed contract address, blockNumber - Block number of which the contract by long value was committed on. Ignore this argument or indicate -1L to check for the latest block.
Check the transaction progress given by the api session hash value.
Arguments: msgHash - The session hash the api client sent.
Returns a Long value representing the recommended energy price.
Get the kernel contained solidity compiler version.
Get account object with attributes like "balance" for a given publicKey/address at the specified blockNumber. If blockNumber=-1 or missing, returns the account object at th latest block.
Argument: publicKey - PublicKey of the account, blockNumber - Block number
Get detailed account information, given a string of addresses
Arguments: addresses - the class String represent by the list of accounts separated by comma [,]. eg. 0xA,0xB,0xC ...
Get detailed account information, given a list of addresses.
Arguments: addresses - List of addresses
blockByHash(hash: String!): Block Get detailed block information include all transactions by given the block number.
Arguments: number - Block number
Get block information, for all blocks in range (latest - n, latest]
Arguments: count - number of blocks from latest for which to retrieve block details
Get detailed block information including all transactions by given the List of block numbers.
Arguments: numbers - List of block numbers
Get detailed block information including all transactions given the starting/end block number
Arguments: blockStart - the start block number. blockEnd - the end of block number.
Returns the current block number of the Aion Kernel connected.
Returns the balance of the account address at latest block number.
Arguments: address - Account address
Returns a Long value representing the balance of the account address at a certain block number.
Arguments: address - Account address, blockNumber - the block number by long value at which the balance of the address should be retrieved from.
Retrieves a block given the block hash.
Arguments: hash - 32 bytes hash of the desired block
Retrieves a block given the block number.
Arguments: number - the block number by long value of the desired block.
Retrieves the total transactions within a block at a given block hash.
Arguments: hash - 32 bytes hash of the desired block.
Retrieves the total transactions within a block at a given block number.
Arguments: blockNumber - the block number by long value of the desired block.
Returns a BigInteger representing the nonce of the account address at the latest block number.
Arguments: address - Account address
Get the storage at a specific position of an address by current blockchain database status.
Arguments: address - account address, position - the index position of the storage, blockNumber - the block number by long value of the desired block.
Gets a transaction based on the block number and transaction index.
Arguments: blockNumber - The block number by long value of the desired block, index - The transaction position by int value of the transaction been stored into the desired block.
Retrieves the transaction given the transaction hash.
Arguments: txHash: 32 bytes hash of the desired transaction
Check connected node's sync status.
Returns the current version of the Aion modules.
Returns the current active connected nodes.
Returns a int value the connecting peers number of the connecting kernel.
Returns the whole consensus network nodes list.
Returns a boolean value if the client is actively listening for network connections.
Check connecting node syncing detailed information.
Invoke the contract method
Arguments: from - Sets the message sender address for function be executed, contractAddress - Contract address, abi - AbiDefinition String, function - ContractFunction object which contains function name and other required properties
For mutation
Create new accounts by given password.
Arguments: passphrase - The list of String represent the passphrase choose for each new generate account, privateKey - The boolean value represent the key return including the private key or just the account address.
Export accounts by given the password and the account address
Arguments: keys - AccountKeyExportInput object represent the passphrase and the account public address.
Export accounts by given the password and the account address
Arguments: keys - AccountKeyExportInput object represent the passphrase and the account public address.
Lock the desired account given the correct passphrase.
Arguments: address - account address, passphrase - Passphrase of the account
Unlocks the desired account for the specified duration(in seconds) given the correct passphrase,
Arguments: address - Account address, passphrase - Passphrase of the account, duration - Unlock duration in second. Default value is 60 sec.
Initiates a call to retrieve the result from a contract.
Arguments: args - Tx arguments
Sends the source code to be compiled in the backend, and returns all relevant information about the compiled code. Will throw if backend compiler is unavailable or code is improperly formatted.
Arguments: code - The class String of the source code to be compiled.
Deploys a new contract onto the Aion blockchain.
Arguments: contractDeploy - Contract deploy arguments
Remove the listening events by given the event name and the contract address.
Arguments: evts - The list of the class String represent the events the user want to listen, address - Contract address
Register the events the user want to listen by given the event name, event filter and the contract address.
Arguments: evts - The list of the class String represent the events the user want to listen, eventFilter - ContractEventFilter, represents the event query conditions, address - Contract address
Pre-build TxArgs for increasing sendTransaction speeds if these transaction must been executed repeatedly. This function provides no functionality to assist with encoding or decoding transaction data. Users may choose to either use the more convenient contractApi for contract transactions.
Arguments: args - Tx Arguments, call - The boolean value represent the function of the contract is a call function.
Initiates a transaction given the encoded transaction byte array with the sender's signature. This function provides no functionality to assist with encoding or decoding transaction data. Users may choose to either use the more convenient contractApi class for contract transactions.
Arguments: encodedTx - The encoded transaction byte array with the sender's signature.
Initiates a transaction. Send a transaction including the raw transaction data and signed with the sender's key.
Argument: txArgs - Tx arguments, privateKey - Sender's private key
Initiates a transaction.
Arguments: txArgs - Tx arguments
Multiple contract create method for deploy contracts on the Aion network. When the constructorArgs are passed, api assumes that there is only one contract. To pass constructorArgs for multiple contracts in one call, use "createFromSourceMultipleContracts" method instead.
Arguments: source - The class String represent the contract source code. It could be multiple contracts, from - The sender or the contract owner whom deploy the contract, nrgLimit - The long value represent the maximum energy consume during this contract deploy been allowed, nrgPrice - The long value represent the unit price of the energy the contract deployer want to pay, value - The class BigInteger represent how many balance of the the sender's account want to send during this deploy, constructorArgs - Represent the contract constructor arguments when the contract has the constructor. It assums that there is only one contract.
Multiple contract create methods for deploy contracts on the Aion network.
Arguments: source - The class String represent the contract source code. It could be multiple contracts, from - The sender or the contract owner whom deploy the contract, nrgLimit - The long value represent the maximum energy consume during this contract deploy been allowed, nrgPrice - The long value represent the unit price of the energy the contract deployer want to pay, value - The class BigInteger represent how many balance of the the sender's account want to send during this deploy, constructorArgsList - Represent the contract constructor arguments for mutiple contract when the contract has the constructor.
Executes the built transaction to invoke the contract method
Arguments: from - The sender's address, contractAddress - Contract address, abi - AbiDefinition string of the deployed contract, function - ContractFunction object, properties like function name etc, nrgLimit - The long value represent the maximum energy consume during this contract deploy been allowed, nrgPrice - The long value represent the unit price of the energy the contract deployer want to pay, txVAlue - he class BigInteger represent how many balance of the the sender's account want to send during this call if any
This stops all events publisher currently started in graphql subscription layer through websocket. (@experimental feature)
| Arguments | |
|---|---|
| code: String | compileResponse: CompileResponseInput |