TransferEvent
Class: TransferEvent
Properties overview
- approved: PublicKey = PublicKey; ↗
- collection: PublicKey = PublicKey; ↗
- fee: UInt64Option = UInt64Option; ↗
- from: PublicKey = PublicKey; ↗
- nft: PublicKey = PublicKey; ↗
- price: UInt64Option = UInt64Option; ↗
- to: PublicKey = PublicKey; ↗
- transferByOwner: Bool = Bool; ↗
Defined in: packages/nft/src/interfaces/events.ts:61
Emitted when an NFT is transferred from one owner to another.
Extends
- {
approved
:PublicKey
;
collection
:PublicKey
;
fee
:UInt64Option
;
from
:PublicKey
;
nft
:PublicKey
;
price
:UInt64Option
;
to
:PublicKey
;
transferByOwner
:Bool
;
}
Constructors
new TransferEvent()
new TransferEvent(value: {
approved: PublicKey;
collection: PublicKey;
fee: UInt64Option;
from: PublicKey;
nft: PublicKey;
price: UInt64Option;
to: PublicKey;
transferByOwner: Bool;
}): TransferEvent
Defined in: node_modules/o1js/dist/node/lib/provable/types/struct.d.ts:103
Parameters
value
approved
PublicKey
= PublicKey
The public key of the approved address.
collection
PublicKey
= PublicKey
The public key of the collection.
fee
UInt64Option
= UInt64Option
The fee paid for the transfer.
from
PublicKey
= PublicKey
The public key of the sender (current owner) before the transfer.
nft
PublicKey
= PublicKey
The public key address of the NFT being transferred.
price
UInt64Option
= UInt64Option
The price of the NFT being transferred.
to
PublicKey
= PublicKey
The public key of the recipient (new owner) after the transfer.
transferByOwner
Bool
= Bool
Indicates whether the transfer is by owner or by approved address.
Returns
Inherited from
Struct({
/ The public key of the sender (current owner) before the transfer. /
from: PublicKey,
/ The public key of the recipient (new owner) after the transfer. /
to: PublicKey,
/ The public key of the collection. /
collection: PublicKey,
/ The public key address of the NFT being transferred. /
nft: PublicKey,
/ The fee paid for the transfer. /
fee: UInt64Option,
/ The price of the NFT being transferred. /
price: UInt64Option,
/ Indicates whether the transfer is by owner or by approved address. /
transferByOwner: Bool,
/ The public key of the approved address. /
approved: PublicKey,
}).constructor
Properties
approved
approved: PublicKey = PublicKey;
Defined in: packages/nft/src/interfaces/events.ts:77
The public key of the approved address.
Inherited from
Struct({
/ The public key of the sender (current owner) before the transfer. /
from: PublicKey,
/ The public key of the recipient (new owner) after the transfer. /
to: PublicKey,
/ The public key of the collection. /
collection: PublicKey,
/ The public key address of the NFT being transferred. /
nft: PublicKey,
/ The fee paid for the transfer. /
fee: UInt64Option,
/ The price of the NFT being transferred. /
price: UInt64Option,
/ Indicates whether the transfer is by owner or by approved address. /
transferByOwner: Bool,
/ The public key of the approved address. /
approved: PublicKey,
}).approved
collection
collection: PublicKey = PublicKey;
Defined in: packages/nft/src/interfaces/events.ts:67
The public key of the collection.
Inherited from
Struct({
/ The public key of the sender (current owner) before the transfer. /
from: PublicKey,
/ The public key of the recipient (new owner) after the transfer. /
to: PublicKey,
/ The public key of the collection. /
collection: PublicKey,
/ The public key address of the NFT being transferred. /
nft: PublicKey,
/ The fee paid for the transfer. /
fee: UInt64Option,
/ The price of the NFT being transferred. /
price: UInt64Option,
/ Indicates whether the transfer is by owner or by approved address. /
transferByOwner: Bool,
/ The public key of the approved address. /
approved: PublicKey,
}).collection
fee
fee: UInt64Option = UInt64Option;
Defined in: packages/nft/src/interfaces/events.ts:71
The fee paid for the transfer.
Inherited from
Struct({
/ The public key of the sender (current owner) before the transfer. /
from: PublicKey,
/ The public key of the recipient (new owner) after the transfer. /
to: PublicKey,
/ The public key of the collection. /
collection: PublicKey,
/ The public key address of the NFT being transferred. /
nft: PublicKey,
/ The fee paid for the transfer. /
fee: UInt64Option,
/ The price of the NFT being transferred. /
price: UInt64Option,
/ Indicates whether the transfer is by owner or by approved address. /
transferByOwner: Bool,
/ The public key of the approved address. /
approved: PublicKey,
}).fee
from
from: PublicKey = PublicKey;
Defined in: packages/nft/src/interfaces/events.ts:63
The public key of the sender (current owner) before the transfer.
Inherited from
Struct({
/ The public key of the sender (current owner) before the transfer. /
from: PublicKey,
/ The public key of the recipient (new owner) after the transfer. /
to: PublicKey,
/ The public key of the collection. /
collection: PublicKey,
/ The public key address of the NFT being transferred. /
nft: PublicKey,
/ The fee paid for the transfer. /
fee: UInt64Option,
/ The price of the NFT being transferred. /
price: UInt64Option,
/ Indicates whether the transfer is by owner or by approved address. /
transferByOwner: Bool,
/ The public key of the approved address. /
approved: PublicKey,
}).from
nft
nft: PublicKey = PublicKey;
Defined in: packages/nft/src/interfaces/events.ts:69
The public key address of the NFT being transferred.
Inherited from
Struct({
/ The public key of the sender (current owner) before the transfer. /
from: PublicKey,
/ The public key of the recipient (new owner) after the transfer. /
to: PublicKey,
/ The public key of the collection. /
collection: PublicKey,
/ The public key address of the NFT being transferred. /
nft: PublicKey,
/ The fee paid for the transfer. /
fee: UInt64Option,
/ The price of the NFT being transferred. /
price: UInt64Option,
/ Indicates whether the transfer is by owner or by approved address. /
transferByOwner: Bool,
/ The public key of the approved address. /
approved: PublicKey,
}).nft
price
price: UInt64Option = UInt64Option;
Defined in: packages/nft/src/interfaces/events.ts:73
The price of the NFT being transferred.
Inherited from
Struct({
/ The public key of the sender (current owner) before the transfer. /
from: PublicKey,
/ The public key of the recipient (new owner) after the transfer. /
to: PublicKey,
/ The public key of the collection. /
collection: PublicKey,
/ The public key address of the NFT being transferred. /
nft: PublicKey,
/ The fee paid for the transfer. /
fee: UInt64Option,
/ The price of the NFT being transferred. /
price: UInt64Option,
/ Indicates whether the transfer is by owner or by approved address. /
transferByOwner: Bool,
/ The public key of the approved address. /
approved: PublicKey,
}).price
to
to: PublicKey = PublicKey;
Defined in: packages/nft/src/interfaces/events.ts:65
The public key of the recipient (new owner) after the transfer.
Inherited from
Struct({
/ The public key of the sender (current owner) before the transfer. /
from: PublicKey,
/ The public key of the recipient (new owner) after the transfer. /
to: PublicKey,
/ The public key of the collection. /
collection: PublicKey,
/ The public key address of the NFT being transferred. /
nft: PublicKey,
/ The fee paid for the transfer. /
fee: UInt64Option,
/ The price of the NFT being transferred. /
price: UInt64Option,
/ Indicates whether the transfer is by owner or by approved address. /
transferByOwner: Bool,
/ The public key of the approved address. /
approved: PublicKey,
}).to
transferByOwner
transferByOwner: Bool = Bool;
Defined in: packages/nft/src/interfaces/events.ts:75
Indicates whether the transfer is by owner or by approved address.
Inherited from
Struct({
/ The public key of the sender (current owner) before the transfer. /
from: PublicKey,
/ The public key of the recipient (new owner) after the transfer. /
to: PublicKey,
/ The public key of the collection. /
collection: PublicKey,
/ The public key address of the NFT being transferred. /
nft: PublicKey,
/ The fee paid for the transfer. /
fee: UInt64Option,
/ The price of the NFT being transferred. /
price: UInt64Option,
/ Indicates whether the transfer is by owner or by approved address. /
transferByOwner: Bool,
/ The public key of the approved address. /
approved: PublicKey,
}).transferByOwner
Updated 10 days ago