SafeTransferFrom

ERC721 Action Plugin - SafeTransferFrom

Description

Transfers the ownership of an NFT from one address to another address

Method

safeTransferFrom(address, address, uint256)

Input Parameters

NamePlugin TypeDescription

to

FctAddress

ERC721 Contract Address

Method Parameters

NamePlugin TypeDescription

from

FctAddress

to

FctAddress

NFT Receiver

tokenId

FctValue

Returned Values

No value returned

Example

Example with initParams

const safeTransferFrom = new ERC721.actions.SafeTransferFrom({
 chainId: 1,
 initParams: {
   to: "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D" // BAYC NFT Contract
   methodParams: {
     from: "0x...",
     to: "0x...",
     tokenId: "9"
   }
 }
})

Example without initParams

const safeTransferFrom = new ERC721.actions.SafeTransferFrom({ chainId: 1 })

safeTransferFrom.input.set({
   to: "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D" // BAYC NFT Contract
   methodParams: {
     from: "0x...",
     to: "0x...",
     tokenId: "9"
   }
})

Learn more

Learn more about EIP721 NFT standard here

Last updated