Default language to use
Registry used to resolve account names
URL of the network
Request account information, from the convex network.
Account or address BigInt to use as the query the account.
The account information of the type IAccountInformation, for example:
Get the address of a deployed function. The function must be owned by the account address passed, for this method to work.
The deployed function go get the address off.
Account or address BigInt to use as the query address. This address is the address used by the owner of the deployed function
The address of the deployed function
Get the current balance of an account.
Account object or BigInt address of the account to get the balance.
The balance of funds held by the account address.
Send a query transaction to the network. A query transaction does not change the network state and so does not need any funds to perform a transaction. Possible query transactions are balance query, address query and calling read operations in contracts.
Read only transaction to perform.
The query results.
Register an account name with the CNS ( Convex Named Service), this name can be used in the convex sandbox or used by the API libraries to resolve an account name to an account address.
an account object with the address set
Request funds from the development account. This method only works on development and test networks that provide free funds.
The amount to request.
The Account object to request funds for.
The amount of funds provided for this request.
Resolve an account name, if found return the account address registered with this account name.
Name of the registered account
Address of the registered account or nil
Resolve a name, if found return the address registered with this name in the Convex Name Services.
Name of the service
Address of the registered service
Send a transaction to the network. This assumes that the network state will change, and as a result a transaction fee will be deducted from the account.
State changing transaction to execute.
Account to sign the transaction.
The result from executing the transaction.
Topup account to a minimum balance
The convex account to topup
The minimum balance the account should be topped too
Number of times to try loop around and topup the account
the amount of funds transfered to the account
Transfer funds from one account to another.
To address an Account, BigInt, number or string , that the funds need to be sent too.
Amount to send for the transfer.
Account to send the funds from. This must be an account object so that the transfer transaction can be sent from the account.
Generated using TypeDoc
Initaliizes a new API object, you need to provide the URL of a Convex Network Node.
const convex = API.create('https://convex.world')