wss://URL that is displayed in the endpoints section. You will need to add this value to the archaeologist config file.
droplet-IPto the IP address of your VM, which is available on the droplet dashboard in DigitalOcean:
mydomain.comwith the domain you added in the previous step. Set the value for the
path_to_private_key_fileto the path on your local machine where you stored the SSL key files when you set up SSH on your server during deployment:
sudokeyword. If you created and logged in a different user on the machine add
sudoto the beginning of all of the commands.
certbotcommand works as expected:
ctrl + xto exit Nano. Type
yto save the file and press Enter.
server_namevalue to your domain.
myarch.comto your domain name in the
proxy_passvalue matches the value defined for
file_portin your archaeologist service config file.
ctrl + xto exit Nano. Type
yto save the file and press Enter.
path/to/keyfile_name.txtshould be the path to the keyfile on your local machine. Replace
[email protected]with your user name and domain for your server. The
:~defines the location that the file will be stored on your server. The
~specifies the root directory, but you can store the file anywhere. You will enter the path to the keyfile in the archaeologist config file.
config.ymlfile using Nano:
eth_node- The address of your node on the Ethereum network that you obtained from Infura. Use the mainnet or testnet address depending on the status of your service.
eth_private_key- The private key for the wallet that stores your ETH and SARCO tokens. By default, bounties will be paid to this address.
payment_address- The private key for a wallet that you would like to use to receive payments. This value is optional. If you do not provide a value, the address set by
eth_private_keywill be used.
mnemonic- A string of random words that will be used to generate a public/private key pair. Set this value to the mnemonic that you generated previously. The keys generated using this value will be used to encrypt the outer layer of each sarcophagi.
arweave_key_file- The absolute path on your server to your Arweave key file.
arweave_node- The node on Arweave that you will use to post sarcophagi. The default value is Arweave's public node, and you typically do not need to change it.
arweave_multiplier- This value increases the Arweave Winston fee that you pay when submitting a sarcophagus for storage on the Arweave network. Setting this value to something between 1.5 and 2.0 ensures that the transaction will go through. Setting this value too high burns any excess Arweave tokens.
contract_address- The address of the main Sarcophagus contract. The contract registers you as an archaeologist, maintains a list of active archeologists, and tracks the status of all of the sarcophagi including when they need to be rewrapped or resurrected. The default value is the Rinkeby network address:
"0x939BE928b0d5fBb7f3FA07217c816496FcBEBa46". When you are ready to go live, change this value to the mainnet address:
token_address- The Sarcophagus token contract address. The default value is the Rinkeby network address:
"0x77ec161f6c2f2ce4554695a07e071d3f0ef3aef5". Update the value to the mainnet address when your service is ready to go live:
endpoint- The URL that embalmers will use to send sarcophagi to your service. This URL must be configured to use HTTPS and should be mapped to the port on your server that is defined by the
file_portconfig value. If you followed the steps in the Set Up Your Server section above, the URL of your server should already meet these requirements.
file_port- The port on your server that you opened to receive files from Embalmers. The default value is 8080. If needed, update this value to match the value that you defined when you Set Up Your Server.
fee_per_byte- The amount of SARCO per byte that you will be paid to upload a sarcophagus to Arweave. Set this value based on the amount of Arweave it costs you to upload the file. The upload cost changes depending on the status of the Arweave network, so you may update this value periodically.
min_bounty- The minimum amount of SARCO that you will accept as bounty when resurrecting a sarcophagus. If a user sends less than this amount as bounty, the network will automatically reject the transaction. It is possible for a user to send an amount greater than this value as bounty. This value should be based on your costs associated with maintaining the service and paying associated gas fees.
min_digging_fee- The minimum amount of SARCO that you will accept as payment for rewrapping a sarcophagus. Rewrapping occurs if the embalmer does not want to resurrect the sarcophagus after the resurrection period established by your archeologist agreement. This value should be set based on your costs associated with rewrapping the sarcophagus, which include gas fees and server costs.
max_resurrection_time- The maximum amount of time in seconds that you will maintain a sarcophagus before either unwrapping or rewrapping it. This value gives you control over how often you will receive bounties or rewrapping fees. This value should be set based on your costs and cash flow requirements.
add_to_free_bond- An amount of SARCO tokens that will be added to your service's free bond when you run the service for the first time. Your wallet must have enough SARCO to cover this value. SARCO in your free bond is maintained on the Sarcophagus main contract and you must maintain SARCO in your free bond to accept new jobs. When you accept a new job, some amount of SARCO in your free bond will be set aside to ensure that you perform your duties as an archaeologist. If you fail to perform your duties, you will lose the tokens associated with the sarcophagus. When you run the service for the first time, this amount of SARCO tokens is sent from your wallet to the main contract, and this value is automatically reset to zero. If you want to commit more tokens to the SARCO free bond, you must reset this value and restart the service.
remove_from_free_bond- An amount of SARCO tokens to withdraw from the free bond on the SARCO main contract. Use this value to reclaim tokens that you previously committed to the free bond. When you start the service this amount of SARCO tokens is sent from the main contract to your wallet address, and this value is reset to zero. To reclaim additional tokens, you must reset this value and restart the service.
lscommand to review the files in the archaeologist-service directory to ensure the build generated an
<full-path-to-arch-service-directory>- Replace this value with the path to the directory where you cloned the archaeologist service repo and built the archaeologist service. If you followed the steps in the Set Up Your Server section, the path is
<your-user>- Replace this value with your user name on the server. The Set Up Your Server instructions use the
<full-path-to-arch-service>- Replace this value with the path to the
airfoil-sarcophagus-archaeologist-servicefile. In the Set Up Your Server example the path is
service archservice restart
journalctl -f -u archservice
service archservice restartcommand to check your available free bond.
add_to_free_bondline in the config file: