TransactionSEALED
?╲■!░%#%●◇◆▫^^╱$?█◇◇░$▪□▪%█#●!◇&$■░╲~#▒~█●╲%&█░■╲●#%░^░@$░&▪*#%◇
Transaction ID
Execution Fee
0.00001974 FLOWTransaction Summary
Contract Call
Called NonFungibleToken, StorageRent, CarClub
Contracts
Script Arguments
Copy:
0recipientAddrAddress
1withdrawIDUInt64
572
Cadence Script
1// Flow Wallet - mainnet Script sendNFTV3 - v2.68
2// Android - r2.8.8 - 302
3
4import NonFungibleToken from 0x1d7e57aa55817448
5
6import StorageRent from 0x707adbad1428c624
7
8import CarClub from 0xf887ece39166906e
9
10// This transaction is for transferring and NFT from
11// one account to another
12
13transaction(recipientAddr: Address, withdrawID: UInt64) {
14
15 prepare(signer: auth(Storage, BorrowValue) &Account) {
16 // get the recipients public account object
17 let recipient = getAccount(recipientAddr)
18
19 // borrow a reference to the signer's NFT collection
20 let collectionRef = signer.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>(from: /storage/CarClubCollection)
21 ?? panic("Could not borrow a reference to the owner's collection")
22
23 // borrow a public reference to the receivers collection
24 let depositRef = recipient
25 .capabilities
26 .borrow<&{NonFungibleToken.Collection}>(/public/CarClubCollection)
27 ?? panic("Could not borrow a reference to the receiver's collection")
28
29 // withdraw the NFT from the owner's collection
30 let nft <- collectionRef.withdraw(withdrawID: withdrawID)
31
32 // Deposit the NFT in the recipient's collection
33 depositRef.deposit(token: <-nft)
34 StorageRent.tryRefill(recipientAddr)
35
36 }
37}