Providers
Providers are the blockchain connectors. A provider is instantiated internally based on the network name provided on initialization.
Available Providers
Properties
network
defaultAccount
The default/main account from which the blockchain transactions are executed
eos
eosjs instance that serves as a bridge with the blockchain
Functions
reset
Reset the provider to another one
If you reset the provider, the whole eoslime and all of it's objects will change entirely the old provider with the new one
getABI(contractName)
Returns contract ABI in JSON format
getRawWASM(contractName)
Returns raw WASM useful for deploying another contract directly
Query Chain Style
In order to be easier for developers to read from a table we have implemented query chain like table search.
Every query should ends with find() in order to be executed.
select(tableName)
Required parameters
tabletName
Possible next subqueries
from
from(contractName)
Required parameters
contractName
Possible next subqueries
scope
find
equal
range
limit
index
scope(accountName)
Required parameters
accountName
If you skip scope, the default one will be set to the from
Possible next subqueries
find
equal
range
limit
index
equal(value)
Required parameters
value
Possible next subqueries
find
limit
index
range(from, to)
Required parameters
from
to
Possible next subqueries
find
limit
index
index(index, indexType)
Required parameters
index
Optional parameters
indexType = i64
Possible next subqueries
find
limit
equal
range
limit(value)
Required parameters
value
Possible next subqueries
find
index
equal
range
find()
Last updated