DEV Community

Cover image for Build Together for Free with Sponsored Contracts on Sort
Sort
Sort

Posted on

Build Together for Free with Sponsored Contracts on Sort

Sponsor a contract address on Sort for only $9/month and make it free for anyone to use data produced by that contract.

We originally focused on charging each developer that uses Sort, but something didn’t feel right. Charging per developer works very well with traditional applications, but things are very different in crypto:

  • Protocols and contracts make revenue when they get transactions, driving transactions to a contract is very important
  • The more applications built on top of a contract, the more transactions will be generated, and that means more revenue (think about all the applications built on top of the UniSwap contracts)

Sort works with crypto projects and protocols to help drive developers to them, via Sort Sponsored Contracts.

When a contract is Sponsored on Sort, it is free for anyone to use data produced by that contract: SQL, push notifications, NFT metadata, and more. The contract author gets two large benefits:

  • Sort is their backend-as-a-service, no need to host servers anywhere (we’ll even give you disposable read-only API keys)
  • Incentive the community, let them build applications using contract data for free!

For instance, let’s look at the currently Sponsored contracts:

An API call to get latest transactions is free, using a demo API key:

const response = await fetch('https://api.sort.xyz/v1/queries/run', {
    method: 'POST',
    headers: {
      'x-api-key': "ec2fa3f2-7fdc-4342-9ebc-95f8b2bd7d21",
      'Accept': 'application/json',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      "query": "SELECT token_id as id, metadata_content FROM ethereum.nft_metadata WHERE contract_address = '0x887f3909c14dabd9e9510128ca6cbb448e932d7f'"
    }),
  })

const full_response = await response.json();
Enter fullscreen mode Exit fullscreen mode

Or use a Sort React Component to show latest transactions for the contract, for free:

<LatestTransactions  
contract_address="0x887f3909c14dabd9e9510128ca6cbb448e932d7f"
  api_key="ec2fa3f2-7fdc-4342-9ebc-95f8b2bd7d21"
  theme="dark"
  blockchain="ethereum"
/>
Enter fullscreen mode Exit fullscreen mode

Check out Sponsored Contracts on Sort, or Sponsor a contract address for only $9/month and make it free for anyone to use.

Top comments (0)