Deploy

By deploying the program, the needed tables will be automatically created or changed (if you're redeploying an existing program) in the Mercury database. Moreover, it will live on our servers and execute the specified logic. If you have specified an on_close function it will run for every new ledger close and perform the required operations.

Once your program is ready you have to deploy it by running a command with the mercury-cli. It can run with Mainnet or Testnet data.

Deploy on Mainnet

mercury-cli --jwt $MERCURY_JWT --local false --mainnet true deploy

Deploy on Testnet

mercury-cli --jwt $MERCURY_JWT --local false --mainnet false deploy

Last updated