Woman smiling while working on her laptop

What is a smart contract? How code runs deals on a blockchain

By SendPay Business · · 2 min read

A quick ID check
  1. Add your photo ID
  2. Add proof of address
  3. Checked and verified

A smart contract is a small program stored on a blockchain that runs by itself when set conditions are met. Nobody has to press a button or approve it: the code does what it was written to do.

How they work

The code and its rules are published on the blockchain, where anyone can read them. When someone sends a transaction that meets the conditions, every computer on the network runs the code and agrees on the result. Each run costs a small network fee, often called gas.

Man in a suit on the phone at a desk

What they are used for

  • Creating tokens and NFTs.
  • Crypto lending and trading apps, often called DeFi.
  • Holding funds until conditions are met.

Try it

Name your platform and watch it come to life

Type a name, tap a colour and pick what it does. The phone changes as you go.

Colour

What it does

Build mine

Design and preview your whole platform free, then launch when you are ready.

The risks

Once published, a smart contract is hard or impossible to change, so a bug can be exploited before anyone can fix it. In 2016 a flaw in a project called The DAO let an attacker drain millions of ether. The phrase "code is law" also means there is often nobody to appeal to.

Team collaborating around a laptop in an office

Where SendPay fits

SendPay platforms let your customers buy, sell and hold crypto under your own brand, with assets held with regulated partners. SendPay does not offer DeFi or smart contract tools.

Smiling man in a suit in a modern office

How it works

Your own money app
  1. Name it and pick your colours
  2. Choose what it does
  3. Launch when you are ready

Why sign up

Create your free SendPay account

It's all about creating your own financial platform with ease. Start with a free account today.

  • A free business accountOpen it in about a minute with your business name, email, password and mobile. No card and no documents to start.
  • Get paid from day oneTake card payments, and share your own payment link and invoices so customers pay in a click.
  • A free business websiteFree to build, free to publish and free to keep, with unlimited visits.
  • Your own financial platformDesign and preview your whole platform free, then launch when you are ready.

SendPay Business is a technology company, not a bank. Accounts, cards and payments are powered by licensed partners.

Questions people ask

What does an Ethereum transaction cost?

Work out a gas fee in ETH and in your currency.

Gas fee calculator →
What is Ethereum?

The best-known smart contract blockchain.

What is Ethereum? →
What is DeFi?

Finance apps built on smart contracts.

What is DeFi? →
What is a gas fee?

The cost of running a transaction.

What is a crypto gas fee? →

Read next

Spotted a mistake or something out of date? and we'll fix it. How our guides are made

This guide is general information, not legal or financial advice. SendPay Business is a technology company, not a bank, and does not take deposits; regulated services on the platforms are provided by licensed partners. Other companies named in this guide are reference points only and are not affiliated with SendPay Business.