How to generate a listing for an NFT without using the app?
- User
How to generate a listing for an NFT without using the app?
- Assistant
- User
Where do I need to put this: import sdk from '@api/undefined';
sdk.auth('demo-api-key'); sdk.postExecuteListV5({ params: [ { orderKind: 'seaport-v1.5', options: { 'seaport-v1.4': {useOffChainCancellation: true}, 'seaport-v1.5': {useOffChainCancellation: true}, 'seaport-v1.6': {useOffChainCancellation: true}, mintify: {useOffChainCancellation: true}, 'payment-processor-v2': {useOffChainCancellation: true}, 'payment-processor-v2.1': {useOffChainCancellation: true}, alienswap: {useOffChainCancellation: true} }, orderbook: 'reservoir', automatedRoyalties: true, currency: '0x0000000000000000000000000000000000000000', weiPrice: '1000000000000000000' } ] }, {accept: '/'}) .then(({ data }) => console.log(data)) .catch(err => console.error(err));
- Assistant
- User
I don't wanna create a website for this, I just wanna directly sign the transaction with my MetaMask account to list the NFT of my choice in Seaport 1.5
- Assistant
- User
But do I need an API key for this?
- Assistant
No, you do not need an API key to directly create and sign a listing order on Seaport v1.5 if you interact directly with the smart contracts via the Seaport SDK and your own wallet (like MetaMask).
Why?
- When you use the Seaport SDK and MetaMask directly, you are interacting with the blockchain peer-to-peer.
- Your wallet signs the order locally and submits transactions directly on-chain or through a decentralized marketplace protocol.
- User
Can I use Infura to use my script?: import sdk from '@api/undefined';
sdk.auth('demo-api-key'); sdk.postExecuteListV5({ params: [ { orderKind: 'seaport-v1.5', options: { 'seaport-v1.4': {useOffChainCancellation: true}, 'seaport-v1.5': {useOffChainCancellation: true}, 'seaport-v1.6': {useOffChainCancellation: true}, mintify: {useOffChainCancellation: true}, 'payment-processor-v2': {useOffChainCancellation: true}, 'payment-processor-v2.1': {useOffChainCancellation: true}, alienswap: {useOffChainCancellation: true} }, orderbook: 'reservoir', automatedRoyalties: true, currency: '0x0000000000000000000000000000000000000000', weiPrice: '1000000000000000000' } ] }, {accept: '/'}) .then(({ data }) => console.log(data)) .catch(err => console.error(err));
- Assistant