TransactionSEALED

●▓╲□○~●$░%&▒~╲&█▫╳◆▪~?█*█░□▪▫#╱◇■#^&■▒◇◆@▓◇●■&◇$~○╳█╳@$!▒◆■╳╱◇█■

Transaction ID

Timestamp

Jun 02, 2024, 09:01:14 AM UTC
1y ago

Block Height

79,496,955

Computation

0

Execution Fee

0.00000179 FLOW

Proposerseq:4037 key:85

Authorizers

1

Transaction Summary

Contract Call

Called Cryptoys, NonFungibleToken

Script Arguments

Copy:
0recipientAddress
1withdrawIDUInt64
215174

Cadence Script

1import Cryptoys from 0xca63ce22f0d6bdba
2import NonFungibleToken from 0x1d7e57aa55817448
3
4// This transaction transfers a Cryptoy from one account to another.
5
6transaction(recipient: Address, withdrawID: UInt64) {
7    let token: @NonFungibleToken.NFT
8    let receiver: Capability<&{NonFungibleToken.CollectionPublic}>
9
10    prepare(signer: AuthAccount) {
11        let collection = signer.borrow<&Cryptoys.Collection>(from: Cryptoys.CollectionStoragePath)
12            ?? panic("could not borrow SoftCollection collection from account")
13        self.token <- collection.withdraw(withdrawID: withdrawID)
14        self.receiver = getAccount(recipient).getCapability<&{NonFungibleToken.CollectionPublic}>(Cryptoys.CollectionPublicPath)
15    }
16
17    execute {
18        let receiver = self.receiver.borrow()
19            ?? panic("recipient Cryptoys collection not initialized")
20        receiver.deposit(token: <- self.token)
21    }
22}