Skip to content

@acala-network/chopsticks-coreDocs


@acala-network/chopsticks-core / JsCallback

Interface: JsCallback

Properties

getNextKey()

getNextKey: (prefix, key) => Promise<undefined | string>

Parameters

prefix: `0x${string}`

key: `0x${string}`

Returns

Promise<undefined | string>

Defined in

executor/dist/esm/index.d.ts:42


getStorage()

getStorage: (key) => Promise<undefined | string>

Parameters

key: `0x${string}`

Returns

Promise<undefined | string>

Defined in

executor/dist/esm/index.d.ts:41


offchainGetStorage()

offchainGetStorage: (key) => Promise<undefined | string>

Parameters

key: `0x${string}`

Returns

Promise<undefined | string>

Defined in

executor/dist/esm/index.d.ts:43


offchainRandomSeed()

offchainRandomSeed: () => Promise<`0x${string}`>

Returns

Promise<`0x${string}`>

Defined in

executor/dist/esm/index.d.ts:45


offchainSubmitTransaction()

offchainSubmitTransaction: (tx) => Promise<boolean>

Parameters

tx: `0x${string}`

Returns

Promise<boolean>

Defined in

executor/dist/esm/index.d.ts:46


offchainTimestamp()

offchainTimestamp: () => Promise<number>

Returns

Promise<number>

Defined in

executor/dist/esm/index.d.ts:44