The GsnCapableDocumentStore is a variant of Document Store which allows for relayed transactions. The rest of the functionality mimics that of Document Store.
This guide is for developers who have Ethereum and want to set up a document store that accept gsn relayed transactions for their users.
We will only show example for the wallet and one must change the command accordingly if using another methodwallet)
Deploying via OpenAttestation CLI
To deploy a GsnCapableDocumentStore you can do so by using the following command. You may replace the
<document-store-name> with a suitable name (the name does not matter).
0x25CEd1955423BA34332Ec1B60154967750a0297Dis the address of trust forwarder for ropsten provided by GSN
This will deploy the GsnCapableDocumentStore on the
ropsten network. You should see a similar output when the deployment is successful:
Save YOUR gsn capable document store address for future reference
After successfully deploying the GsnCapableDocumentStore, you will need to set the paymaster address. This will allow relayers to know which paymaster to request payment from. You can do so with the following command.
This allows our client to look up the paymaster address for your contract without additional declaration.
Similar to binding the document store to a domain name, you will have to bind the identity of the GSN capable document store to a domain name.
If you like more detailed setup instructions, you may refer to the documentation for configuring DNS.
Take note of the domain you are inserting the records on, you will need this later
Below is a list of additional resources for more information: