Badge
此内容尚不支持你的语言。
One soulbound badge of one owner and kind.
Accepts
Section titled “Accepts”| Message | Opcode | Fields |
|---|---|---|
InitBadge |
0x4a254623 |
queryId: uint64, owner: address, kind: uint16, authority: address |
ProveOwnership |
0x04ded148 |
queryId: uint64, dest: address, forwardPayload: cell, withContent: bool |
RequestOwner |
0xd0c3bfea |
queryId: uint64, dest: address, forwardPayload: cell, withContent: bool |
DestroyBadge |
0x1f04537a |
queryId: uint64 |
RevokeBadge |
0x6f89f5e3 |
queryId: uint64 |
RequestStaticData |
0x2fcb26a2 |
queryId: uint64 |
AskToChangeOwnership |
0x5fcc3d14 |
queryId: uint64, newOwnerAddress: address, sendExcessesTo: address?, customPayload: cell?, forwardTonAmount: coins, forwardPayload: RemainingBitsAndRefs |
| Message | Opcode | Fields |
|---|---|---|
ReturnExcessesBack |
0xd53276db |
queryId: uint64 |
OwnershipProof |
0x0524c7ae |
queryId: uint64, itemId: uint256, owner: address, data: cell, revokedAt: uint64, content: cell? |
OwnerInfo |
0x0dd607e3 |
queryId: uint64, itemId: uint256, initiator: address, owner: address, data: cell, revokedAt: uint64, content: cell? |
ResponseStaticData |
0x8b771735 |
queryId: uint64, itemIndex: uint256, collectionAddress: address |
Getters
Section titled “Getters”| Getter | Parameters | Returns |
|---|---|---|
get_nft_data |
— | BadgeNftData |
get_authority_address |
— | address? |
get_revoked_time |
— | int |
get_code_version |
— | CodeVersion |
InitBadge
Section titled “InitBadge”Opcode 0x4a254623.
| Field | Type |
|---|---|
queryId |
uint64 |
owner |
address |
kind |
uint16 |
authority |
address |
ProveOwnership
Section titled “ProveOwnership”Opcode 0x04ded148.
| Field | Type |
|---|---|
queryId |
uint64 |
dest |
address |
forwardPayload |
cell |
withContent |
bool |
RequestOwner
Section titled “RequestOwner”Opcode 0xd0c3bfea.
| Field | Type |
|---|---|
queryId |
uint64 |
dest |
address |
forwardPayload |
cell |
withContent |
bool |
DestroyBadge
Section titled “DestroyBadge”Opcode 0x1f04537a.
| Field | Type |
|---|---|
queryId |
uint64 |
RevokeBadge
Section titled “RevokeBadge”Opcode 0x6f89f5e3.
| Field | Type |
|---|---|
queryId |
uint64 |
RequestStaticData
Section titled “RequestStaticData”Opcode 0x2fcb26a2.
| Field | Type |
|---|---|
queryId |
uint64 |
AskToChangeOwnership
Section titled “AskToChangeOwnership”Opcode 0x5fcc3d14.
| Field | Type |
|---|---|
queryId |
uint64 |
newOwnerAddress |
address |
sendExcessesTo |
address? |
customPayload |
cell? |
forwardTonAmount |
coins |
forwardPayload |
RemainingBitsAndRefs |
ReturnExcessesBack
Section titled “ReturnExcessesBack”Opcode 0xd53276db.
| Field | Type |
|---|---|
queryId |
uint64 |
OwnershipProof
Section titled “OwnershipProof”Opcode 0x0524c7ae.
| Field | Type |
|---|---|
queryId |
uint64 |
itemId |
uint256 |
owner |
address |
data |
cell |
revokedAt |
uint64 |
content |
cell? |
OwnerInfo
Section titled “OwnerInfo”Opcode 0x0dd607e3.
| Field | Type |
|---|---|
queryId |
uint64 |
itemId |
uint256 |
initiator |
address |
owner |
address |
data |
cell |
revokedAt |
uint64 |
content |
cell? |
ResponseStaticData
Section titled “ResponseStaticData”Opcode 0x8b771735.
| Field | Type |
|---|---|
queryId |
uint64 |
itemIndex |
uint256 |
collectionAddress |
address |
BadgeNftData
Section titled “BadgeNftData”| Field | Type |
|---|---|
isInitialized |
bool |
index |
uint256 |
collectionAddress |
address |
ownerAddress |
address? |
content |
cell |
CodeVersion
Section titled “CodeVersion”| Field | Type |
|---|---|
major |
uint8 |
minor |
uint8 |
patch |
uint8 |