Interface
The Shardus API provides you with a few essential methods required to configure a Shardus network. You can see the required methods here:
- applyResponseAddState
- constructor
- createApplyResponse
- createWrappedResponse
- getLocalOrRemoteAccount (required for nontrivial dapps)
- isFirstSeed (required for nontrivial dapps)
- put
- registerExceptionHandler
- registerExternalGet (required if dapp doesn't provide its own http interface)
- registerExternalPost (required if dapp doesn't provide its own http interface)
- setup
- start
💡
Although not required for a network to function, these functions can aid you when developing with more specific functionality in mind.
- applyResponseAddChangedAccount
- applyResponseAddReceiptData
- applyResponseSetFailed
- debugCommitAccountCopies
- forwardAccounts
- genericApplyPartialUpdate
- getClosestNodes
- getClosestNodesGlobal
- getConsenusGroupForAccount
- getCycleMarker
- getDebugModeMiddleware
- getDevPublicKey
- getLatestCycles
- getLocalOrRemoteAccountQueueCount
- getLocalOrRemoteCachedAppData
- getLogFlags
- getNode
- getNodeId
- getRandomConsensusNodeForAccount
- getRemoteAccount
- isAccountRemote
- isActive
- isNodeInDistance
- log
- monitorEvent
- on
- patchObject
- registerCacheTopic
- resetAppRelatedState
- sendCorrespondingCachedAppData
- set
- setGlobal
- setPartialData
- shardus_fatal
- shutdown
- signAsNode
- syncAppData
- tryInvolveAccount
- updateConfigChangeQueue
- useAccountWrites