Enterprise Wallet
Note: enterprise wallet was formerly known as app wallet

Creating an Enterprise Wallet

To create an enterprise wallet, first you will need an app. Start by visiting our Developer Portal, then click New App and enter your details.
After you create your app, you can create your Enterprise Wallet. Navigate to your app details in the developer portal. Then, select the Accounts tab. Click New Account to generate an ethereum account. You will then see your account's address and current balance across our supported networks.

Creating your credentials

In order to actually use your Enterprise Wallet in your code, you will need to create credentials. These credentials are exchanged with our OAuth server for an access token, which is then used to access your accounts.
To create a credential, first visit your app details page in the dev portal. Then, select the Backend Credentials tab, and click New Credential.
Your credential id and client secret will be displayed in a modal. Make sure to download the credentials or copy these down somewhere, as the secret cannot be retrieved later. If you lose the secret, you can regenerate it on this screen as well.
Currently, each credential can access all of the accounts under your app. We recommend creating one credential per app or service that uses it. That way you can remove access as needed with as little interruption as possible.
Important: Since these credentials allow you to send transactions from your enterprise wallet without any prompt, you should treat them as a username and password, and be careful not to share them with any untrusted parties.

Funding your Enterprise Wallet

For now, this is a manual process. We recommend buying ETH from a third-party such as Coinbase and sending it to your enterprise wallet's address.

Signing Rules

For additional security, we allow you to create rules around what transactions should be signed. These rules are specific to each individual address for additional flexibility. You can find these settings by visiting the Accounts tab under your app, then clicking Edit on the account you want to set rules for.

Restrict To Addresses

This rule allows you to lock your Enterprise Wallet to only sign transactions where the recipient matches the list. When enabled, transactions will be checked for their "to" field and only transactions that match will be approved. This is a good feature to enable for use cases where your account is only being used to execute calls on a particular contract.

Backend SDKs

We currently have SDKs for both Node.js and Python applications. These SDKs take your credentials and give you a web3 provider that is ready to use. If you would like to use Enterprise Wallet on another platform, please contact us and we will consider creating an SDK for it.

Deploying Contracts with Truffle

We also have a simple Truffle plugin that makes deploying contracts from your Enterprise Wallet easy. Read more about it here.

Getting an Access Token

First, you'll use your credential id and secret to request an access token using OAuth. Most platforms have a library that can handle this step for you. Your token has a relatively short lifespan, so you should store the expiration date and request a new one when it expires. In order to sign transactions, you must request the scope eth_sign.
POST /oauth2/token HTTP/2
Host: https://account.bitski.com
&client_secret=YOUR CLIENT SECRET
HTTP/2 200 OK
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache
"access_token": "YOUR ACCESS TOKEN",
"token_type": "bearer",
"expires_in": 3600,
"scope": "eth_sign"
You are now ready to send JSON RPC requests.
Last modified 5mo ago