f351ce6b170a67a0cc6fc97aab74a9ab982182e486110fc8a5a3284c8ba70121
Contract interface exposed by this module
Contract: agent_registry
Methods:
- "balanceOf"
Parameter:
[
{
"address": {
"Enum": [
{
"Account": [
"<AccountAddress>"
]
},
{
"Contract": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
}
]
}
]
},
"token_id": "<String with lowercase hex>"
}
]
Return value:
[
"<String of size at most 74 containing an unsigned integer.>"
]
- "getAgent"
Parameter:
"<String with lowercase hex>"
Return value:
{
"Enum": [
{
"None": []
},
{
"Some": [
{
"agent_card_url": "<String>",
"agent_name": "<String>",
"agent_type": {
"Enum": [
{
"Native": []
},
{
"Asserted": []
},
{
"VerifiedEth": []
}
]
},
"external_claim": {
"Enum": [
{
"None": []
},
{
"Some": [
{
"handle": "<String>",
"platform": "<String>",
"verification_anchor": {
"Enum": [
{
"None": []
},
{
"Some": [
"<String of size 64 containing lowercase hex characters.>"
]
}
]
},
"verifier_account": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
}
}
]
}
]
},
"metadata_hash": [
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>"
],
"owner": "<AccountAddress>",
"registered_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"status": {
"Enum": [
{
"Active": []
},
{
"Revoked": []
}
]
},
"token_id": "<UInt64>",
"verified_key": {
"Enum": [
{
"None": []
},
{
"Some": [
{
"cisx_contract": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"external_address": {
"address": "<String>",
"namespace": "<String>"
},
"external_key": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
}
}
]
}
]
}
}
]
}
]
}
- "getAgentByClaim"
Parameter:
{
"handle": "<String>",
"platform": "<String>"
}
Return value:
{
"Enum": [
{
"None": []
},
{
"Some": [
{
"agent_card_url": "<String>",
"agent_name": "<String>",
"agent_type": {
"Enum": [
{
"Native": []
},
{
"Asserted": []
},
{
"VerifiedEth": []
}
]
},
"external_claim": {
"Enum": [
{
"None": []
},
{
"Some": [
{
"handle": "<String>",
"platform": "<String>",
"verification_anchor": {
"Enum": [
{
"None": []
},
{
"Some": [
"<String of size 64 containing lowercase hex characters.>"
]
}
]
},
"verifier_account": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
}
}
]
}
]
},
"metadata_hash": [
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>"
],
"owner": "<AccountAddress>",
"registered_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"status": {
"Enum": [
{
"Active": []
},
{
"Revoked": []
}
]
},
"token_id": "<UInt64>",
"verified_key": {
"Enum": [
{
"None": []
},
{
"Some": [
{
"cisx_contract": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"external_address": {
"address": "<String>",
"namespace": "<String>"
},
"external_key": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
}
}
]
}
]
}
}
]
}
]
}
- "getAgentsByOwner"
Parameter:
"<AccountAddress>"
Return value:
[
{
"agent_card_url": "<String>",
"agent_name": "<String>",
"agent_type": {
"Enum": [
{
"Native": []
},
{
"Asserted": []
},
{
"VerifiedEth": []
}
]
},
"external_claim": {
"Enum": [
{
"None": []
},
{
"Some": [
{
"handle": "<String>",
"platform": "<String>",
"verification_anchor": {
"Enum": [
{
"None": []
},
{
"Some": [
"<String of size 64 containing lowercase hex characters.>"
]
}
]
},
"verifier_account": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
}
}
]
}
]
},
"metadata_hash": [
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>"
],
"owner": "<AccountAddress>",
"registered_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"status": {
"Enum": [
{
"Active": []
},
{
"Revoked": []
}
]
},
"token_id": "<UInt64>",
"verified_key": {
"Enum": [
{
"None": []
},
{
"Some": [
{
"cisx_contract": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"external_address": {
"address": "<String>",
"namespace": "<String>"
},
"external_key": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
}
}
]
}
]
}
}
]
- "registerAgent"
Parameter:
{
"agent_card_url": "<String>",
"agent_name": "<String>",
"agent_type": {
"Enum": [
{
"Native": []
},
{
"Asserted": []
},
{
"VerifiedEth": []
}
]
},
"external_claim": {
"Enum": [
{
"None": []
},
{
"Some": [
{
"handle": "<String>",
"platform": "<String>",
"verification_anchor": {
"Enum": [
{
"None": []
},
{
"Some": [
"<String of size 64 containing lowercase hex characters.>"
]
}
]
},
"verifier_account": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
}
}
]
}
]
},
"metadata_hash": [
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>"
],
"verified_key": {
"Enum": [
{
"None": []
},
{
"Some": [
{
"cisx_contract": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"external_address": {
"address": "<String>",
"namespace": "<String>"
},
"external_key": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
}
}
]
}
]
}
}
Return value:
{
"did": "<String>",
"token_id": "<String with lowercase hex>"
}
- "revokeAgent"
Parameter:
{
"token_id": "<String with lowercase hex>"
}
- "supports"
Parameter:
[
"<String>"
]
Return value:
[
{
"Enum": [
{
"NoSupport": []
},
{
"Support": []
},
{
"SupportBy": [
[
{
"index": "<UInt64>",
"subindex": "<UInt64>"
}
]
]
}
]
}
]
- "tokenMetadata"
Parameter:
[
"<String with lowercase hex>"
]
Return value:
[
{
"hash": {
"Enum": [
{
"None": []
},
{
"Some": [
"<String of size 64 containing lowercase hex characters.>"
]
}
]
},
"url": "<String>"
}
]
- "transfer"
Parameter:
[
{
"amount": "<String of size at most 74 containing an unsigned integer.>",
"data": "<String with lowercase hex>",
"from": {
"Enum": [
{
"Account": [
"<AccountAddress>"
]
},
{
"Contract": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
}
]
}
]
},
"to": {
"Enum": [
{
"Account": [
"<AccountAddress>"
]
},
{
"Contract": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"<String>"
]
}
]
},
"token_id": "<String with lowercase hex>"
}
]
- "view"
Return value:
{
"agents": [
{
"agent_card_url": "<String>",
"agent_name": "<String>",
"agent_type": {
"Enum": [
{
"Native": []
},
{
"Asserted": []
},
{
"VerifiedEth": []
}
]
},
"external_claim": {
"Enum": [
{
"None": []
},
{
"Some": [
{
"handle": "<String>",
"platform": "<String>",
"verification_anchor": {
"Enum": [
{
"None": []
},
{
"Some": [
"<String of size 64 containing lowercase hex characters.>"
]
}
]
},
"verifier_account": {
"Enum": [
{
"None": []
},
{
"Some": [
"<AccountAddress>"
]
}
]
}
}
]
}
]
},
"metadata_hash": [
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>",
"<UInt8>"
],
"owner": "<AccountAddress>",
"registered_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
"status": {
"Enum": [
{
"Active": []
},
{
"Revoked": []
}
]
},
"token_id": "<UInt64>",
"verified_key": {
"Enum": [
{
"None": []
},
{
"Some": [
{
"cisx_contract": {
"index": "<UInt64>",
"subindex": "<UInt64>"
},
"external_address": {
"address": "<String>",
"namespace": "<String>"
},
"external_key": {
"key_type": "<String>",
"namespace": "<String>",
"public_key": [
"<UInt8>"
]
}
}
]
}
]
}
}
],
"agents_by_claim": [
{
"handle": "<String>",
"platform": "<String>",
"token_id": "<String with lowercase hex>"
}
],
"agents_by_owner": [
{
"owner": "<AccountAddress>",
"token_ids": [
"<String with lowercase hex>"
]
}
],
"next_token_id": "<UInt64>",
"operators": [
{
"operators": [
{
"Enum": [
{
"Account": [
"<AccountAddress>"
]
},
{
"Contract": [
{
"index": "<UInt64>",
"subindex": "<UInt64>"
}
]
}
]
}
],
"owner": "<AccountAddress>"
}
]
}