Protected_clientProtected_ctxProtected_nodeProtected_vetoProtected_voteGet metadata of specific Respect award NTT. Throws if token is not found or is burned.
id of a token.
Get metadata of Respect award NTTs, sorted from latest to oldest.
Optionalspec: { specification for a query
before - newest mint date for a token. If specified, only tokens which were created up to this date will be returned;limit - maximum number of tokens to return. If not specified, it's up to ornode implementation.recipient - recipient of the awards. If specified only awards which belong to this account are returned.burned - whether to return burned tokens or not. Default: false.list of token metadata objects sorted by mint datetime from latest to oldest.
burned in the spec to true to change this behaviour.await c.getAwards() // Return latest awards unfiltered
await c.getAwards({ before: new Date("2024-08-30T11:42:59.000Z"), limit: 50 }) // Return up to 50 awards that happened before the specified date
await c.getAwards({ recipient: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" }) // Get latest awards belonging to specified accounts
Get period number (incremented using ticks see ORClient#proposeTick).
Get a proposal by id or by OffchainPropId.
Behavior:
id is a PropId (bytes32), this returns the earliest-created instance for that id
to preserve legacy links that referenced only the on-chain id.id is an OffchainPropId ({ id, createTxHash }), this returns the exact instance
created by the given transaction.PropId or { id, createTxHash }
Get proposals ordered from latest to oldest.
Optionalspec: { Query specification:
before - newest allowed creation timestamp; only proposals created up to this time are returned.limit - maximum number of proposals to return.execStatFilter - filter by execution status (includes "Canceled"). If undefined, no exec-status filtering.voteStatFilter - filter by vote status. If undefined, no vote-status filtering.stageFilter - filter by stage. If undefined, no stage filtering.idFilter - filter by a specific PropId when supported by the server.Proposals sorted from latest to oldest.
Get metadata of specific token. The token can be fungible Respect token or Respect award token (NTT).
id of a token.
Get information on votes submitted on proposals. Votes returned are sorted from newest to oldest.
Optionalspec: { specification for a query
before - newest possible date of a vote. If specified, only votes made up to this date will be returned.limit - maximum number of objects to return. If not specified it is up to implementation of ornode.propFilter - list of proposal ids. If specified, then only votes on proposals in this list are returned.voterFilter - list of ethereum addresses. If specified, only votes from this list of accounts are returned.minWeight - minimum vote weight. If specified, only votes which have equal or greater weight are returned.voteType - Yes / No. If specified only votes of specified type are returned.Optionalbefore?: DateOptionallimit?: numberOptionalminOptionalpropOptionalvoterOptionalvote
Client for reading from ORDAO system