For network, by default the network is mainnet
, if you want to query in testnet
Just add network=testnet
query on the url
http://localhost:3000/api/nft/collections
http://localhost:3000/api/nft/collection?collectionIdentifier={collectionIdentifier}
http://localhost:3000/api/nft/collection?collectionIdentifier=Flovatar
http://localhost:3000/api/nft/id?address={address}
http://localhost:3000/api/nft/list?address={address}&offset={offset}&limit={limit}
http://localhost:3000/api/nft/list?address=0x95601dba5c2506eb&offset=0&limit=10
http://localhost:3000/api/nft/generateInit?collectionIdentifier={NFTCollectionID}
http://localhost:3000/api/nft/generateInit?collectionIdentifier=Flovatar
{
"cadence": "import FungibleToken from 0x9a0766d93b6608b7\ntransaction(amount: UFix64, to: Address) {\nlet vault: @FungibleToken.Vault\nprepare(signer: AuthAccount) {\nself.vault <- signer\n.borrow<&{FungibleToken.Provider}>(from: /storage/flowTokenVault)!\n.withdraw(amount: amount)\n}\nexecute {\ngetAccount(to)\n.getCapability(/public/flowTokenReceiver)!\n.borrow<&{FungibleToken.Receiver}>()!\n.deposit(from: <-self.vault)\n}\n}",
"network": "testnet"
}
or
{
"cadence_base64":"aW1wb3J0IEZ1bmdpYmxlVG9rZW4gZnJvbSAweDlhMDc2NmQ5M2I2NjA4YjcKdHJhbnNhY3Rpb24oYW1vdW50OiBVRml4NjQsIHRvOiBBZGRyZXNzKSB7CmxldCB2YXVsdDogQEZ1bmdpYmxlVG9rZW4uVmF1bHQKcHJlcGFyZShzaWduZXI6IEF1dGhBY2NvdW50KSB7CnNlbGYudmF1bHQgPC0gc2lnbmVyCi5ib3Jyb3c8JntGdW5naWJsZVRva2VuLlByb3ZpZGVyfT4oZnJvbTogL3N0b3JhZ2UvZmxvd1Rva2VuVmF1bHQpIQoud2l0aGRyYXcoYW1vdW50OiBhbW91bnQpCn0KZXhlY3V0ZSB7CmdldEFjY291bnQodG8pCi5nZXRDYXBhYmlsaXR5KC9wdWJsaWMvZmxvd1Rva2VuUmVjZWl2ZXIpIQouYm9ycm93PCZ7RnVuZ2libGVUb2tlbi5SZWNlaXZlcn0+KCkhCi5kZXBvc2l0KGZyb206IDwtc2VsZi52YXVsdCkKfQp9",
}
http://localhost:3000/api/domain?address={address}
http://localhost:3000/api/domain/address?name={name}
Please refer to this repo https://github.com/Outblock/flow-account-api