Get full account dictionary By default uses current environment address and node
Get data from account dictionary by key By default uses current environment address and node
Generates address By default uses current environment seed and chainId
Creates alias transaction or signs already formed one. Creates alias for address. Alias could be used in place of address later
Retrieve information about specific asset account balance By default uses current environment address and node
Get account effective balance By default uses current environment address and node
Retrieve full information about acryl account balance. Effective, generating etc By default uses current environment address and node
Sends transaction to acryl node By default uses current environment address and node
Creates burn transaction or signs already formed one. Burn transaction destroys tokens. You cannot burn ACRYL
Creates cancel-lease transaction or signs already formed one
Creates cancel-order request or signs already formed one
Returns base64 representations of compiled ride file
Shorthand for file()
Current blockchain height By default has 20s timeout and uses current environment node
Creates data transaction or signs already formed one
Shorthand for chai.expect
chai
Returns file content as string. Either from 'ride' folder or WEB IDE storage
Creates invoke tx and broadcasts it
Creates invoke-script transaction or signs already formed one
Creates issue transaction or signs already formed one
Generates key pair from seed By default uses current environment seed
Creates lease transaction or signs already formed one
Creates mass-transfer transaction or signs already formed one
Creates order or signs already formed one
Generates private key from seed By default uses current environment seed
Generates public key from seed By default uses current environment seed
Creates reissue transaction or signs already formed one
Creates set-asset-script transaction or signs already formed one
Creates set-script transaction or signs already formed one
Generates test accounts with balances. Sends acryl to generated accounts from master seed. Saves account seeds accounts
E.g.: setupAccounts({foo:1000}). Now accounts['foo'] contains seed phrase for account and this account has
1000 wavelets
By default uses current environment node and seed as masterSeed
const wvs = 10 ** 8
describe('some suite', () => {
before(async ()) => {
await setupAccounts({foo: 1 * wvs, bar: 2 * wvs})
})
it('logs balances', async () => {
console.log(await balance(address(accounts.foo)))
console.log(await balance(address(accounts.bar)))
})
})
Signs arbitrary bytes By default uses current environment seed and chainId
Signs arbitrary transaction
Creates sponsorship transaction or signs already formed one
Get invokeScript tx state changes By default uses current environment address and node
Get transaction by Id. Returns null if no transaction with such id present in blockchain
Creates transfer transaction or signs already formed one
Resolves after target height has been reached By default has 20s timeout and uses current environment node
Resolves N blocks after specified txId is mined into the block By default has 20s timeout and uses current environment node
Resolves N blocks after current blockchain height By default has 20s timeout and uses current environment node
Generated using TypeDoc
Contains seeds generated by setupAccounts function E.g:
await setupAccounts({foo:10, bar: 20}) console.log(accounts.foo, accounts.bar) // these variables now contain seeds from accounts with 10 and 20 wavelets