RevokeAccreditationToAttest
@iota/hierarchies API documentation
Class: RevokeAccreditationToAttest
A wrapper for the RevokeAccreditationToAccredit transaction.
Constructors
Constructor
new RevokeAccreditationToAttest(
federation_id,entity_id,accreditation_id,owner):RevokeAccreditationToAttest
Creates a new instance of WasmRevokeAccreditationToAttest.
Arguments
federation_id- The ID of the federation.entity_id- The ID of the user whose accreditation is being revoked.accreditation_id- The ID of the accreditation to revoke.owner- The address of the transaction signer.
Parameters
federation_id
string
entity_id
string
accreditation_id
string
owner
string
Returns
RevokeAccreditationToAttest
Methods
toJSON()
toJSON():
Object
- Return copy of self without private attributes.
Returns
Object
toString()
toString():
string
Return stringified version of self.
Returns
string
buildProgrammableTransaction()
buildProgrammableTransaction(
client):Promise<Uint8Array<ArrayBufferLike>>
Builds and returns a programmable transaction for revoking an accreditation to attest.
Arguments
client- A read-only client for blockchain interaction.
Returns
The binary BCS serialization of the programmable transaction.
Errors
Returns an error if the transaction cannot be built.
Parameters
client
CoreClientReadOnly
Returns
Promise<Uint8Array<ArrayBufferLike>>
applyWithEvents()
applyWithEvents(
wasm_effects,wasm_events,client):Promise<void>
Applies transaction effects and events to this revoke accreditation to attest operation.
Arguments
effects- The transaction block effects to apply.events- The transaction block events to apply.client- A read-only client for blockchain interaction.
Parameters
wasm_effects
TransactionEffects
wasm_events
IotaEvent[]
client
CoreClientReadOnly
Returns
Promise<void>