{"info":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","description":"<html><head></head><body><p>The ares API exposes the entire ares infrastructure via a standardized programmatic interface. Using the ares API, you can do just about anything you can do on ares arena, while using your programming language of choice. The ares API is a RESTful API based on HTTP requests and JSON responses.</p>\n<p>This version of the API, version 1, uses OAuth 2.0. This means that all requests will need to be encrypted and sent via HTTPS. It also means that you need to register your application, even if you aren't allowing users to login.</p>\n<p>The easiest way to start using the ares API is by clicking the Run in Postman button above. Postman is a free tool which helps developers run and debug API requests, and is the source of truth for this documentation. Every endpoint you see documented here is readily available by running our Postman collection.</p>\n<h1 id=\"client-sdks\">Client SDKs</h1>\n<p>Client SDKs help you to quickly integrate the ares API into your application without the need to go into the details of the API documentation below. Following a list of official client SDKs:</p>\n<ul>\n<li><a href=\"https://www.npmjs.com/package/@ares-dev/client-nodejs\">Javascript / browser</a></li>\n<li><a href=\"https://www.npmjs.com/package/@ares-dev/client-nodejs\">Javascript / nodejs</a></li>\n<li><a href=\"https://www.npmjs.com/package/@ares-dev/client-nodejs\">Typescript / browser + angular</a></li>\n<li><a href=\"https://www.npmjs.com/package/@ares-dev/client-nodejs\">Typescript / nodejs</a></li>\n</ul>\n<h1 id=\"register-application\">Register Application</h1>\n<p>Register your application to receive a <code>client_id</code> and <code>client_secret</code> for authentication with the ares API.</p>\n<blockquote>\n<p>There are cases where its not possible to securely store a client secret, e.g. for mobile or desktop applications. In such situations you may register your application as a <em>public</em> client without a secret. This only works for the <a href=\"#f4f37762-a542-4d3d-b170-96e9a4a32554\"><strong>Authorization Code</strong> flow</a>.</p>\n</blockquote>\n<ol>\n<li><p><a href=\"https://d3ob2g5ep10o1o.cloudfront.net/settings/api\">Register</a> your application.</p>\n<p> <img src=\"https://d3ob2g5ep10o1o.cloudfront.net/doc/image/io-arestech-arena-api-auth-register-application-1-2.png\" alt=\"Register Application 1/2\"></p>\n</li>\n<li><p>The field <code>Redirect URIs</code> must contain all callback/redirect URIs you want to use during oauth2 authorization requests. Specifying a <code>redirect_uri</code> for an authorization request that is not contained in this whitelist will cause an error. The <code>redirect_uri</code> is used to detemine where the user gets redirected to after confirming or dismissing an authorization request. </p>\n<p> <img src=\"https://d3ob2g5ep10o1o.cloudfront.net/doc/image/io-arestech-arena-api-auth-register-application-2-2.png\" alt=\"Register Application 2/2\"></p>\n</li>\n<li><p>Copy &amp; securely store provided <code>client_id</code> and <code>client_secret</code>. You will not be able to recover the <code>client_secret</code> later on.</p>\n</li>\n</ol>\n<h1 id=\"authorize-application-postman\">Authorize Application - Postman</h1>\n<ol>\n<li><p><a href=\"https://www.getpostman.com/\">Download</a> Postman and click the Run in Postman button at the top of this page. This will load our collection of endpoints into Postman for easy debugging.</p>\n<p> <img src=\"https://d3ob2g5ep10o1o.cloudfront.net/doc/image/io-arestech-arena-api-auth-authorize-application-postman-1-2.png\" alt=\"Authorize Application - Postman 1/2\"></p>\n</li>\n<li><p>Edit the imported ares collection and open the <strong>Authorization</strong> tab.</p>\n<p> <img src=\"https://d3ob2g5ep10o1o.cloudfront.net/doc/image/io-arestech-arena-api-auth-authorize-application-postman-2-2.png\" alt=\"Authorize Application - Postman 2/2\"></p>\n</li>\n<li><p>Click <strong>Get New Access Token</strong> and fill fields of presented dialog as follows:</p>\n<ul>\n<li><strong>Grant Type</strong> <em>Client Credentials</em></li>\n<li><strong>Access Token URL</strong> <code>https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/auth/token</code></li>\n<li><strong>Client ID</strong> <em>Your Client ID</em></li>\n<li><strong>Client Secret</strong> <em>Your Client Secret</em></li>\n<li><strong>Scope</strong> <code>identity account owner</code></li>\n<li><strong>Client Authentication</strong> <em>Send as Basic Auth header</em></li>\n</ul>\n</li>\n<li><p>Confirm by clicking <strong>Request Token</strong> and <strong>Use Token</strong> on the following screen.</p>\n</li>\n</ol>\n<h1 id=\"authorize-application-swagger\">Authorize Application - Swagger</h1>\n<p>Alternatively you may use our hosted <a href=\"https://d3ob2g5ep10o1o.cloudfront.net/doc/api/public/index.html\">Swagger UI</a> to try out the ares API. Simply click the <strong>Authorize</strong> button on top of the page and enter your <em>Client ID</em> and <em>Client Secret</em>.</p>\n<h1 id=\"authorize-application-custom\">Authorize Application - Custom</h1>\n<p>The ares API offers two oauth2 flows to authorize your own applications:</p>\n<ul>\n<li><p><a href=\"#f4f37762-a542-4d3d-b170-96e9a4a32554\"><strong>Authorization Code</strong> flow</a> Request authorization for your application from another user. For example to make requests with limited permissions on behalf of that user.</p>\n</li>\n<li><p><a href=\"#7841a69d-1fe0-46bc-b297-8ed3d0c82af6\"><strong>Client Credentials</strong> flow</a> Authorize your application to act as the user that registered the application and generated corresponding <em>Client ID</em> and <em>Client Secret</em>.</p>\n</li>\n</ul>\n<h1 id=\"access-token\">Access Token</h1>\n<p>No matter what authorization flow you choose, if all goes well you end up with an access token. The ares API is designed to be stateless. Consequently all session &amp; authorization related information is embedded in the access token encoded as a JSON Web Token [<a href=\"https://jwt.io/\">JWT</a>].</p>\n<p>An ares API access token consists of a header, a body and a signature separated by dots. Typically resulting in something similar to this (w/o linebreaks):</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9\n.\neyJzdWIiOiJkNjNkNmJjNGNkN2E3ODllMjNiNTY1MDM4MzgwNTMwZDE2OWVmNWZiMDQ3Zjhh\nZmMxMWVkNzk2ZiIsImlhdCI6MTU0MDM4MjQ1NSwiZXhwIjoxNTQwMzg2MDU1LCJhdWQiOiJm\nNmFmM2QwMC1kNzgyLTExZTgtOTZjNi0xM2I3NjlmNTdhMDYiLCJwcnYiOnsidmFsdWVzIjp7\nImFjY291bnQiOnsidHlwZSI6Im1haWwiLCJ2YWx1ZSI6ImNhcnN0ZW4uc2NoaXBrZUBnbWFp\nbC5jb20ifSwiaWRlbnRpdHkiOnsiZXRoIjoiMHg0MzVkMDRjOTI5MmVhNWZhMDk2ZWQwYmUz\nOTVlMmM0ZTExNDQ2MzFlIiwiYmRiIjoiOU5RMndyQ1ZmeERqUE5jOEFnMkRvVnF0SjV5blBO\nU3NLeXBVU0ZiUkxIZXQifSwib3duZXIiOnt9fSwic2NvcGVzIjpbImlkZW50aXR5IiwiYWNj\nb3VudCIsIm93bmVyIl19fQ\n.\nPbK0Uysqh5qWS_Z9gT3VIYYb_sh0Y4oAVlamgROLfAjG-AO7kYMrTPRjQ5LUWKR88zwvxUwJ\n4Q1ssk-Dy4J66IX-2nrvbcHiQv0E4IQW3v3hXZGVQQJfMsehdKrKK-TbFSTihVD-4v8N_MDZ\nunLlDUpKywFl1t-D_FqA3jzCKQE\n</code></pre><ul>\n<li><p>The header contains information about token type and utilised signature algorithm.</p>\n</li>\n<li><p>The body is a regular base64 encoded JSON string, containing useful information for both ares API nodes as well as API clients / applications:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"sub\": \"d9c2f9bd48a1e60539ff6fe6e25c501c103f5d93a90a3f5221b2734a\",\n    \"aud\": \"arena\",\n    \"prv\": {\n        \"values\": {\n            \"identity\": {\n                \"bdb\": \"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\",\n                \"eth\": \"0xea4ba38cf229f7bd8a5b99daea3914cf16899eed\"\n            },\n            \"account\": {\n                \"type\": \"mail\",\n                \"value\": \"carsten@arestech.io\"\n            },\n            \"owner\": {}\n        },\n        \"scopes\": [\n            \"identity\",\n            \"account\",\n            \"owner\"\n        ]\n    },\n    \"iat\": 1539333731,\n    \"exp\": 1539337331\n}\n</code></pre><ul>\n<li><strong>sub</strong> Unique identifier of authenticated user</li>\n<li><strong>aud</strong> Application / client authorized to use this token</li>\n<li><strong>prv</strong> Payload containing additional information based on authorized scopes as well as an enumeration of the authorized scopes. <code>identity</code> contains associated blockchain identities, i.e. public keys / addresses. <code>account</code> contains the email address or mobile number the user used to register. <code>owner</code> currently merely acts as a placeholder. If a certain scope is not given or authorized, corresponding field in payload is encrypted.</li>\n<li><strong>iat</strong> Issued at</li>\n<li><strong>exp</strong> Expires at</li>\n</ul>\n</li>\n<li><p>The signature provides ares API nodes and clients a way to ensure that the token has not been tampered with.</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Client SDKs","slug":"client-sdks"},{"content":"Register Application","slug":"register-application"},{"content":"Authorize Application - Postman","slug":"authorize-application-postman"},{"content":"Authorize Application - Swagger","slug":"authorize-application-swagger"},{"content":"Authorize Application - Custom","slug":"authorize-application-custom"},{"content":"Access Token","slug":"access-token"}],"owner":"5572603","collectionId":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","publishedId":"RWgqUHvV","public":true,"customColor":{"top-bar":"F8F8F8","right-sidebar":"303030","highlight":"7400A4"},"publishDate":"2018-11-08T17:02:22.000Z"},"item":[{"name":"Authentication","item":[{"name":"OAuth2 - Authorization Code Flow - Request Authorization","id":"f4f37762-a542-4d3d-b170-96e9a4a32554","request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/auth?response_type=&client_id=&redirect_uri=&scope=&state=","description":"<p>Use the <strong>Authorization Code</strong> flow to request authorization for your application from another user. For example to make requests with limited permissions on behalf of that user. The application can request authorization with the scopes <code>identity</code> and <code>account</code>. Whereby <code>identity</code> is mandatory and will automatically be included if the user authorizes your application. The optional scope <code>account</code> provides access to the user's account details, e.g. the email address or mobile number the user registered with.</p>\n<p>To request authorization, open the parameterized authorization url as shown in a web browser and present it to the user you want to request authorization from.</p>\n<ul>\n<li>If you miss mandatory, or provided illegal parameters, the user is redirected to <code>redirect_uri</code> with the query parameters <code>error</code> and <code>state</code>. Whereby <code>state</code> contains the value you provided upon request (optional), and <code>error</code> contains the value <code>invalid_request</code>.</li>\n<li>If you provided an illegal or disabled <code>client_id</code>, the user is redirected to <code>redirect_uri</code> with the query parameters <code>error</code> and <code>state</code>. Whereby <code>state</code> contains the value you provided upon request (optional), and <code>error</code> contains the value <code>unauthorized_client</code>.</li>\n<li>If the user denies authorization, he is redirected to <code>redirect_uri</code> with the query parameters <code>error</code> and <code>state</code>. Whereby <code>state</code> contains the value you provided upon request (optional), and <code>error</code> contains the value <code>access_denied</code>.</li>\n<li>If the user confirms authorization, he is redirected to <code>redirect_uri</code> with the query parameters <code>code</code>, <code>scope</code> and <code>state</code>. Whereby <code>state</code> contains the value you provided upon request (optional), <code>scope</code> contains the scopes the user authorized and <code>code</code> contains the authorization code that you can exchange for an access token during the next step.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["alpha","auth"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[{"description":{"content":"<p>Must be <code>code</code></p>\n","type":"text/plain"},"key":"response_type","value":""},{"description":{"content":"<p>Your Application's Client ID</p>\n","type":"text/plain"},"key":"client_id","value":""},{"description":{"content":"<p>Your Application's Oauth2 Callback URI (must be one of your registered redirect uris)</p>\n","type":"text/plain"},"key":"redirect_uri","value":""},{"description":{"content":"<p>Can be any of <code>identity</code>, <code>identity+account</code></p>\n","type":"text/plain"},"key":"scope","value":""},{"description":{"content":"<p>Optional custom parameter that will be passed through authorization and to your provided <code>redirect_uri</code>. Allows your application to identify the authorization request when the callback is invoked.</p>\n","type":"text/plain"},"key":"state","value":""}],"variable":[]}},"response":[{"id":"2c9c1ca2-d610-46bf-b2dc-593d425df71e","name":"OAuth2 - Authorization Code Flow - Obtain Authorization Code","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/auth?response_type=code&client_id=fca5b7c0-cca1-11e8-b7f3-efeb12087ebf&redirect_uri=https://domain.tld/oauth2/callback&scope=identity+account&state=c9ec83db0bfc273e43e09f6b06b7d5","protocol":"https","host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"path":["alpha","auth"],"query":[{"key":"response_type","value":"code","description":"Must be `code`"},{"key":"client_id","value":"fca5b7c0-cca1-11e8-b7f3-efeb12087ebf","description":"Your Application's *Client ID*"},{"key":"redirect_uri","value":"https://domain.tld/oauth2/callback","description":"Your Application's Oauth2 Callback URI (must be one of your registered redirect uris)"},{"key":"scope","value":"identity+account","description":"Requested Scope - can be any of `identity`, `account`, `identity+account`"},{"key":"state","value":"c9ec83db0bfc273e43e09f6b06b7d5","description":"Optional custom parameter that will be passed through authorization and to your provided callback uri. Allows your application to identity the authorization request when the callback is invoked."}]}},"status":"Temporary Redirect (since HTTP/1.1)","code":307,"_postman_previewlanguage":"text","header":[{"key":"Location","value":"https://domain.tld/oauth2/callback?code=7c77a6fd9c69938c0da89110c3c6cd04aa9d17673c0d0a852d2d198b&scope=identity+account&state=c9ec83db0bfc273e43e09f6b06b7d5","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"HTTP/1.1 307 Temporary Redirect\nLocation: https://domain.tld/oauth2/callback?code=7c77a6fd9c69938c0da89110c3c6cd04aa9d17673c0d0a852d2d198b&scope=identity+account&state=c9ec83db0bfc273e43e09f6b06b7d5"}],"_postman_id":"f4f37762-a542-4d3d-b170-96e9a4a32554"},{"name":"OAuth2 - Authorization Code Flow - Obtain Access Token","id":"2a529600-383b-49e9-af47-d78d20738e4e","request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"","description":"<p><code>Basic base64({{client_id}}:{{client_secret}})</code> Alternative to <em>Client ID</em> and <em>Client Secret</em> in body</p>\n","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"","description":"<p>Must be <code>authorization_code</code></p>\n","type":"text"},{"key":"client_id","value":"","description":"<p>Your Application's <em>Client ID</em>. Alternative to <strong>Authorization</strong> header</p>\n","type":"text"},{"key":"client_secret","value":"","description":"<p>Your Application's <em>Client Secret</em>. Alternative to <strong>Authorization</strong> header</p>\n","type":"text"},{"key":"code","value":"","description":"<p>The authorization code provided to your <code>redirect_uri</code> in previous step</p>\n","type":"text"},{"key":"redirect_uri","value":"","description":"<p>Must match the <code>redirect_uri</code> of previous step requesting the authorization code</p>\n","type":"text"}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/auth/token","description":"<p>Use the authorization code obtained in previous step to exchange it for an acces &amp; refresh token pair.</p>\n","urlObject":{"protocol":"https","path":["alpha","auth","token"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"56923cef-46b1-46cc-8cdc-12f08f7e4bc4","name":"OAuth2 - Authorization Code Flow - Obtain Access Token - Basic Auth","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic ZmNhNWI3YzAtY2NhMS0xMWU4LWI3ZjMtZWZlYjEyMDg3ZWJmOmI5ODIwMDNjMjExMzY4MTg0M2FjYjhjMDM2NDM1OTg3YzMxYmY4ODA0YzZjN2NhMDJiNGZiMzhj","description":"Basic Auth. Alternative to *Client ID* and *Client Secret* in body","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"authorization_code","description":"Must be `authorization_code`","type":"text"},{"key":"client_id","value":"{{client_id}}","description":"Your Application's *Client ID*. Alternative to `Authorization` header","type":"text","disabled":true},{"key":"client_secret","value":"{{client_secret}}","description":"Your Application's *Client Secret*. Alternative to `Authorization` header","type":"text","disabled":true},{"key":"code","value":"{{authorization_code}}","description":"The authorization code provided to your `redirect_uri` in previous step","type":"text"},{"key":"redirect_uri","value":"{{redirect_uri}}","description":"Must match the `redirect_uri` of previous step requesting the authorization code","type":"text"}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/auth/token"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...\",\n    \"refresh_token\": \"5769b39c4a2c74cca1b51c036564f22d6d...\",\n    \"token_type\": \"Bearer\",\n    \"expiry\": 3600\n}"},{"id":"72f8dd08-0f1b-4ef4-ae50-42ad4d92e227","name":"OAuth2 - Authorization Code Flow - Obtain Access Token - Client ID & Client Secret","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"authorization_code","description":"Must be `authorization_code`","type":"text"},{"key":"client_id","value":"fca5b7c0-cca1-11e8-b7f3-efeb12087ebf","description":"Your Application's *Client ID*","type":"text"},{"key":"client_secret","value":"b982003c2113681843acb8c036435987c31bf8804c6c7ca02b4fb38c","description":"Your Application's *Client Secret*","type":"text"},{"key":"code","value":"7c77a6fd9c69938c0da89110c3c6cd04aa9d17673c0d0a852d2d198b","description":"The authorization code provided to your `redirect_uri` in previous step","type":"text"},{"key":"redirect_uri","value":"https://domain.tld/oauth2/callback","description":"Must match the `redirect_uri` of previous step requesting the authorization code","type":"text"}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/auth/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...\",\n    \"refresh_token\": \"5769b39c4a2c74cca1b51c036564f22d6d...\",\n    \"token_type\": \"Bearer\",\n    \"expiry\": 3600\n}"}],"_postman_id":"2a529600-383b-49e9-af47-d78d20738e4e"},{"name":"OAuth2 - Client Credentials Flow - Obtain Access Token","id":"7841a69d-1fe0-46bc-b297-8ed3d0c82af6","request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"","description":"<p><code>Basic base64({{client_id}}:{{client_secret}})</code> Alternative to <em>Client ID</em> and <em>Client Secret</em> in body</p>\n","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"","description":"<p>Must be <code>client_credentials</code></p>\n","type":"text"},{"key":"client_id","value":"","description":"<p>Your Application's <em>Client ID</em>. Alternative to <strong>Authorization</strong> header</p>\n","type":"text"},{"key":"client_secret","value":"","description":"<p>Your Application's <em>Client Secret</em>. Alternative to <strong>Authorization</strong> header</p>\n","type":"text"},{"key":"scope","value":"","description":"<p>Scope - can be any of <code>identity</code>, <code>identity+account</code>, <code>identity+account+owner</code></p>\n","type":"text"}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/auth/token","description":"<p>Use the <strong>Client Credentials</strong> flow to authorize your application to act as the user that registered the application and generated associated <em>Client ID</em> and <em>Client Secret</em>. The application can request authorization with the scopes <code>identity</code>, <code>account</code> and <code>owner</code>. Whereby <code>identity</code> is mandatory and will automatically be included. The optional scope <code>account</code> provides access to the user's account details, e.g. the email address or mobile number the user registered with. The optional scope <code>owner</code> will grant ownership permissions. For example it allows your application to directly commit signed transactions without additional multi-factor authentication requests that may require manual interaction.</p>\n","urlObject":{"protocol":"https","path":["alpha","auth","token"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"20844636-2e4f-424a-9f08-761dc08cb33a","name":"OAuth2 - Client Credentials Flow - Obtain Access Token - Basic Auth","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic ZmNhNWI3YzAtY2NhMS0xMWU4LWI3ZjMtZWZlYjEyMDg3ZWJmOmI5ODIwMDNjMjExMzY4MTg0M2FjYjhjMDM2NDM1OTg3YzMxYmY4ODA0YzZjN2NhMDJiNGZiMzhj","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","description":"Must be `client_credentials`","type":"text"},{"key":"client_id","value":"fca5b7c0-cca1-11e8-b7f3-efeb12087ebf","description":"Your Application's *Client ID*. Alternative instead of `Authorization` header","type":"text","disabled":true},{"key":"client_secret","value":"b982003c2113681843acb8c036435987c31bf8804c6c7ca02b4fb38c","description":"Your Application's *Client Secret*. Alternative instead of `Authorization` header","type":"text","disabled":true}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/auth/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...\",\n    \"token_type\": \"Bearer\",\n    \"expiry\": 3600\n}"},{"id":"8a5bcb24-8617-4025-bf70-357e2119fb86","name":"OAuth2 - Client Credentials Flow - Obtain Access Token - Client ID & Client Secret","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"},{"key":"Authorization","value":"Basic base64({{client_id}}:{{client_secret}})","description":"Basic Auth. Alternative instead of *Client ID* and *Client Secret* in body","type":"text","disabled":true}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials","description":"Must be `client_credentials`","type":"text"},{"key":"client_id","value":"fca5b7c0-cca1-11e8-b7f3-efeb12087ebf","description":"Your Application's *Client ID*. Alternative instead of `Authorization` header","type":"text"},{"key":"client_secret","value":"b982003c2113681843acb8c036435987c31bf8804c6c7ca02b4fb38c","description":"Your Application's *Client Secret*. Alternative instead of `Authorization` header","type":"text"}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/auth/token"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...\",\n    \"token_type\": \"Bearer\",\n    \"expiry\": 3600\n}"}],"_postman_id":"7841a69d-1fe0-46bc-b297-8ed3d0c82af6"},{"name":"OAuth2 - Refresh Access Token","id":"e6c14c96-e70d-4d1c-b6da-7f6742e2258a","request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"description":"<p><code>Basic base64({{client_id}}:{{client_secret}})</code> Alternative to <em>Client ID</em> and <em>Client Secret</em> in body</p>\n","key":"Authorization","type":"text","value":""}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Must be <code>refresh_token</code></p>\n","key":"grant_type","type":"text","value":""},{"description":"<p>Your Application's <em>Client ID</em>. Alternative to <strong>Authorization</strong> header</p>\n","key":"client_id","type":"text","value":""},{"description":"<p>Your Application's <em>Client Secret</em>. Alternative to <strong>Authorization</strong> header</p>\n","key":"client_secret","type":"text","value":""}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/auth/token","description":"<p>You may use the refresh token obtained along with the access token during authorization code flow to obtain a new access token if your current one expired, without asking the user again for authorization.</p>\n","urlObject":{"protocol":"https","path":["alpha","auth","token"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"2f3a8dae-1f82-426e-88be-3af5b222670d","name":"OAuth2 - Refresh Access Token - Basic Auth","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic ZmNhNWI3YzAtY2NhMS0xMWU4LWI3ZjMtZWZlYjEyMDg3ZWJmOmI5ODIwMDNjMjExMzY4MTg0M2FjYjhjMDM2NDM1OTg3YzMxYmY4ODA0YzZjN2NhMDJiNGZiMzhj","description":"Basic Auth. Alternative instead of *Client ID* and *Client Secret* in body","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"Must be `refresh_token`","key":"grant_type","type":"text","value":"refresh_token"},{"description":"Your Application's *Client ID*. Alternative instead of `Authorization` header","key":"client_id","type":"text","value":"{{client_id}}","disabled":true},{"description":"Your Application's *Client Secret*. Alternative instead of `Authorization` header","key":"client_secret","type":"text","value":"{{client_secret}}","disabled":true},{"description":"Your Refresh Token","key":"refresh_token","type":"text","value":"5769b39c4a2c74cca1b51c036564f22d6d93e479b5045be6211dff26983257cf3f31310458b742e809ec32e4be900da5"}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/auth/token"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...\",\n    \"refresh_token\": \"5769b39c4a2c74cca1b51c036564f22d6d...\",\n    \"token_type\": \"Bearer\",\n    \"expiry\": 3600\n}"},{"id":"9b997744-82c1-4c3f-a39d-5f49f6832b8d","name":"OAuth2 - Refresh Access Token - Client ID & Client Secret","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"},{"key":"Authorization","value":"Basic base64({{client_id}}:{{client_secret}})","description":"Basic Auth. Alternative instead of *Client ID* and *Client Secret* in body","type":"text","disabled":true}],"body":{"mode":"urlencoded","urlencoded":[{"description":"Must be `refresh_token`","key":"grant_type","type":"text","value":"refresh_token"},{"description":"Your Application's *Client ID*. Alternative instead of `Authorization` header","key":"client_id","type":"text","value":"fca5b7c0-cca1-11e8-b7f3-efeb12087ebf"},{"description":"Your Application's *Client Secret*. Alternative instead of `Authorization` header","key":"client_secret","type":"text","value":"b982003c2113681843acb8c036435987c31bf8804c6c7ca02b4fb38c"},{"description":"Your Refresh Token","key":"refresh_token","type":"text","value":"5769b39c4a2c74cca1b51c036564f22d6d93e479b5045be6211dff26983257cf3f31310458b742e809ec32e4be900da5"}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/auth/token"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...\",\n    \"refresh_token\": \"5769b39c4a2c74cca1b51c036564f22d6d...\",\n    \"token_type\": \"Bearer\",\n    \"expiry\": 3600\n}"}],"_postman_id":"e6c14c96-e70d-4d1c-b6da-7f6742e2258a"}],"id":"c8b24933-26d4-48c5-a065-1eb7888b84b7","event":[{"listen":"prerequest","script":{"id":"4535737a-4eed-4d84-985b-4737c3b21811","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"68427f2b-9736-4d08-9c77-2ab7bd30c9e9","type":"text/javascript","exec":[""]}}],"_postman_id":"c8b24933-26d4-48c5-a065-1eb7888b84b7","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}}},{"name":"Avatars","item":[{"name":"Resolve Avatars","id":"2c0944a5-589f-4022-98ff-7b85fa69b7e9","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"}],"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/avatars","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}},"urlObject":{"protocol":"https","path":["alpha","avatars"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"96e9df43-7c66-4b73-a61e-eab953606745","name":"Resolve Avatars - Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"}],"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/avatars"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"6029d211fc0a2867c9eeb3e70b95c7a63d6d84b986f61121ebb61574c6b65f5a\",\n        \"name\": \"BAD$TAN\",\n        \"url\": \"http://stan.to/\",\n        \"image\": \"https://s3.eu-central-1.amazonaws.com/alpha-arena-avatars/6bc8fe7f049cc8b9c9e3f4e9d2a2e816e8887cfe2f8ea2de09536211dac32702f2fe84f043f8a8d355934b1d780097e6.gif\"\n    }\n]"}],"_postman_id":"2c0944a5-589f-4022-98ff-7b85fa69b7e9"},{"name":"Create Avatar","id":"377fe3fe-dd21-43f8-8e38-dc98b6682b84","request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{access_token}}"}],"body":{"mode":"formdata","formdata":[{"description":"<p>Nickname</p>\n","key":"name","type":"text","value":""},{"description":"<p>Website (URL)</p>\n","key":"url","type":"text","value":""},{"description":"<p>Image (File)</p>\n","key":"image","type":"file","value":null}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/avatars","description":"<p><strong>Create Avatar</strong> prepares an unsigned (<em>pending</em>) transaction to store an avatar owned by authenticated user on the blockchain. On success, status <code>201 Created</code> is returned along with the headers <code>X-Ares-Created-Id</code> containing the id of the pending transaction as well as <code>Location</code> containing an authorization url for the pending transaction.</p>\n<p>To actually sign &amp; commit the transaction to the blockchain, the pending transaction must be <a href=\"#421c0a9b-9e91-498b-a37b-f853d41a37b8\">resolved</a> using provided id and <a href=\"#08de676f-71f1-4690-97e3-adb8fadc39c0\">signed &amp; submitted</a> to the transactions endpoint.</p>\n<p>If your application does not have the necessary credentials, i.e. private key, to sign the transaction, for example if your application is creating the avatar on behalf of another user, the provided authorization url must be opened in a web browser and presented to the user instead.</p>\n<p>To receive notification on whether the user authorized the transaction, the parameter <code>redirect_uri</code> can be appended to the authorization url. The user will be redirected there upon authorization / dismissal of requested transaction.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}},"urlObject":{"protocol":"https","path":["alpha","avatars"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"cac117ef-9a02-4b26-b731-16b0f5b63a46","name":"Create Avatar - Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Stan","type":"text"},{"key":"url","value":"http://domain.tld/","type":"text"},{"key":"image","type":"text","value":"@avatar.png"}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/avatars"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[{"key":"X-Ares-Created-Id","value":"e8b03420-cdfa-11e8-8e78-2de832d5ac92","description":"","type":"text"},{"key":"Location","value":"https://d3ob2g5ep10o1o.cloudfront.net/account/transactions/authorize?transaction_id=e8b03420-cdfa-11e8-8e78-2de832d5ac92","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"HTTP/1.1 201 Created\nX-Ares-Created-Id: e8b03420-cdfa-11e8-8e78-2de832d5ac92\nLocation: https://d3ob2g5ep10o1o.cloudfront.net/account/transactions/authorize?transaction_id=e8b03420-cdfa-11e8-8e78-2de832d5ac92\n"}],"_postman_id":"377fe3fe-dd21-43f8-8e38-dc98b6682b84"},{"name":"Update Avatar","id":"e4f1dbab-1f89-4a0e-9e6e-b969f562d35a","request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"description":"<p>Nickname</p>\n","key":"name","type":"text","value":""},{"description":"<p>Website (URL)</p>\n","key":"url","type":"text","value":""},{"description":"<p>Image (File)</p>\n","key":"image","type":"file","value":null}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/avatars/{{id}}","description":"<p><strong>Update Avatar</strong> prepares an unsigned (<em>pending</em>) transaction to update (<em>transfer</em>) an avatar owned by authenticated user on the blockchain. On success, status <code>201 Created</code> is returned along with the headers <code>X-Ares-Created-Id</code> containing the id of the pending transaction as well as <code>Location</code> containing an authorization url for the pending transaction.</p>\n<p>To actually sign &amp; commit the transaction to the blockchain, the pending transaction must be <a href=\"#421c0a9b-9e91-498b-a37b-f853d41a37b8\">resolved</a> using provided id and <a href=\"#08de676f-71f1-4690-97e3-adb8fadc39c0\">signed &amp; submitted</a> to the transactions endpoint.</p>\n<p>If your application does not have the necessary credentials, i.e. private key, to sign the transaction, for example if your application is updating the avatar on behalf of another user, the provided authorization url must be opened in a web browser and presented to the user instead.</p>\n<p>To receive notification on whether the user authorized the transaction, the parameter <code>redirect_uri</code> can be appended to the authorization url. The user will be redirected there upon authorization / dismissal of requested transaction.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}},"urlObject":{"protocol":"https","path":["alpha","avatars","{{id}}"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"4755a20e-6040-4989-bcd0-822888a6b7e7","name":"Update Avatar - Example","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Bad Stan","type":"text"},{"key":"url","value":"http://domain.tld/","type":"text"},{"key":"image","type":"text","value":"@avatar.png"}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/avatars/6029d211fc0a2867c9eeb3e70b95c7a63d6d84b986f61121ebb61574c6b65f5a"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[{"key":"X-Ares-Created-Id","value":"e8b03420-cdfa-11e8-8e78-2de832d5ac92","description":"","type":"text"},{"key":"Location","value":"https://d3ob2g5ep10o1o.cloudfront.net/account/transactions/authorize?transaction_id=e8b03420-cdfa-11e8-8e78-2de832d5ac92","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"HTTP/1.1 201 Created\nX-Ares-Created-Id: e8b03420-cdfa-11e8-8e78-2de832d5ac92\nLocation: https://d3ob2g5ep10o1o.cloudfront.net/account/transactions/authorize?transaction_id=e8b03420-cdfa-11e8-8e78-2de832d5ac92\n"}],"_postman_id":"e4f1dbab-1f89-4a0e-9e6e-b969f562d35a"}],"id":"11065dae-e149-40f5-9032-f52fecb321a4","_postman_id":"11065dae-e149-40f5-9032-f52fecb321a4","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}}},{"name":"Transactions","item":[{"name":"BigchainDB Transactions","item":[{"name":"Resolve Transaction","id":"df189b2e-ecc8-4131-8424-1211f5a435c8","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"}],"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/transactions/bdb/{{id}}","description":"<p>Resolve raw transaction from underlying blockchain.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}},"urlObject":{"protocol":"https","path":["alpha","transactions","bdb","{{id}}"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"5c8ebaa0-ef6b-489d-a479-cc2a584b262b","name":"Resolve Transaction - Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"}],"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/transactions/bdb/6029d211fc0a2867c9eeb3e70b95c7a63d6d84b986f61121ebb61574c6b65f5a"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n\t\"chain\": \"bdb\",\n\t\"scope\": \"root\",\n\t\"value\": {\n\t\t\"id\": \"6029d211fc0a2867c9eeb3e70b95c7a63d6d84b986f61121ebb61574c6b65f5a\",\n\t\t\"asset\": {\n\t\t\t\"id\": \"8304bd6557284fe98124389f834ab9b7a70e5cf436b490f35505dc497abf880a\"\n\t\t},\n\t\t\"operation\": \"TRANSFER\",\n\t\t\"version\": \"2.0\",\n\t\t\"metadata\": {\n\t\t\t\"version\": \"7\",\n\t\t\t\"created_at\": \"2018-10-10T14:16:21.667Z\",\n\t\t\t\"values\": {\n\t\t\t\t\"ref\": \"d9c2f9bd48a1e60539ff6fe6e25c501c103f5d93a90a3f5221b2734a_avatar_7\",\n\t\t\t\t\"name\": \"Stan\",\n\t\t\t\t\"url\": \"http://stan.to/\",\n\t\t\t\t\"image\": \"https://s3.eu-central-1.amazonaws.com/alpha-arena-avatars/6bc8fe7f049cc8b9c9e3f4e9d2a2e816e8887cfe2f8ea2de09536211dac32702f2fe84f043f8a8d355934b1d780097e6.gif\"\n\t\t\t}\n\t\t},\n\t\t\"inputs\": [\n\t\t\t{\n\t\t\t\t\"fulfills\": {\n\t\t\t\t\t\"transaction_id\": \"e456671ffd7e7093e758100189cf51742b0c680b9bd71c6f73a8a67f50279e73\",\n\t\t\t\t\t\"output_index\": 0\n\t\t\t\t},\n\t\t\t\t\"owners_before\": [\n\t\t\t\t\t\"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t],\n\t\t\t\t\"fulfillment\": \"pGSAIAFa-Szbnr5RLwf4vc_-Lqrv4-mkuuFEyUi_J3zWk9A8gUB3n7t5Cf9Xls8EgA6mGDOWDlA_gIrU9JP7oBdvQOn20Bt4eH1zvmcDbH0nIhpegOZ17TPOEe6b1nmDH1cOqi8D\"\n\t\t\t}\n\t\t],\n\t\t\"outputs\": [\n\t\t\t{\n\t\t\t\t\"public_keys\": [\n\t\t\t\t\t\"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t],\n\t\t\t\t\"condition\": {\n\t\t\t\t\t\"uri\": \"ni:///sha-256;HpCANV2iJLSvCg0UKqiXcaAvhRPxJIp5dh_G7HLDxCY?fpt=ed25519-sha-256&cost=131072\",\n\t\t\t\t\t\"details\": {\n\t\t\t\t\t\t\"type\": \"ed25519-sha-256\",\n\t\t\t\t\t\t\"public_key\": \"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"amount\": \"1\"\n\t\t\t}\n\t\t]\n\t}\n}\n"}],"_postman_id":"df189b2e-ecc8-4131-8424-1211f5a435c8"}],"id":"dfe14cc8-7bcc-428a-9783-531e704e7707","_postman_id":"dfe14cc8-7bcc-428a-9783-531e704e7707","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}}},{"name":"Ethereum Transactions","item":[{"name":"Resolve Transaction","id":"38cb9efe-2d98-49b3-9f26-9e3a58417ca5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{access_token}}"}],"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/transactions/eth/{{id}}?scope","description":"<p>Resolve raw transaction from underlying blockchain.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}},"urlObject":{"protocol":"https","path":["alpha","transactions","eth","{{id}}"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[{"description":{"content":"<p>Can be any of <code>root</code>, <code>child</code></p>\n","type":"text/plain"},"key":"scope","value":null}],"variable":[]}},"response":[{"id":"7ca29652-4914-49d4-b2e2-effea8794239","name":"Resolve Transaction - Root Chain","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"}],"url":{"raw":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/transactions/eth/0xe39c107b6ca67e897b082df41c48cfa4ca4fe29b68a07ef454f15e678fd5050a?scope=root","protocol":"https","host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"path":["alpha","transactions","eth","0xe39c107b6ca67e897b082df41c48cfa4ca4fe29b68a07ef454f15e678fd5050a"],"query":[{"key":"scope","value":"root"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n\t\"chain\": \"eth\",\n\t\"scope\": \"root\",\n\t\"value\": {\n\t\t\"blockHash\": \"0x73d4e34a2ec2fa7f116534e3a5cfe28b89bff3c59e501f6a39d209f2f883dd26\",\n\t\t\"blockNumber\": 46865,\n\t\t\"from\": \"0x2b9bbd09ea584fccc972b069331a6ec5be390b39\",\n\t\t\"gas\": 46000,\n\t\t\"gasPrice\": \"5000000000\",\n\t\t\"hash\": \"0xe39c107b6ca67e897b082df41c48cfa4ca4fe29b68a07ef454f15e678fd5050a\",\n\t\t\"input\": \"0x\",\n\t\t\"nonce\": 1,\n\t\t\"to\": \"0x435d04c9292Ea5FA096Ed0be395e2C4e1144631E\",\n\t\t\"transactionIndex\": 0,\n\t\t\"value\": \"3000000000000000000\",\n\t\t\"v\": \"0xa95\",\n\t\t\"r\": \"0x7de3ab71e093336dfdd088a61cd1178890e03e0fbeb680b2519e9741d63d7f56\",\n\t\t\"s\": \"0x76010b90d591df1cd31060d5f295d38cb8188f7982a21618cafedb7defaf5083\"\n\t}\n}\n"},{"id":"e1305381-ddd0-4956-8975-e90289007b9e","name":"Resolve Transaction - Child Chain","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{access_token}}"}],"url":{"raw":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/transactions/eth/0xe39c107b6ca67e897b082df41c48cfa4ca4fe29b68a07ef454f15e678fd5050a?scope=child","protocol":"https","host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"path":["alpha","transactions","eth","0xe39c107b6ca67e897b082df41c48cfa4ca4fe29b68a07ef454f15e678fd5050a"],"query":[{"key":"scope","value":"child"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 09 Nov 2018 11:19:23 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1244"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"4f50c3e9-e411-11e8-b38a-7bdd171e94af"},{"key":"x-amzn-ErrorType","value":"IncompleteSignatureException"},{"key":"x-amz-apigw-id","value":"QF4BPG6MliAFiMQ="}],"cookie":[],"responseTime":null,"body":"{\n\t\"chain\":\"eth\",\n\t\"scope\":\"child\",\n\t\"value\":{\n\t\t\"txid\":\"E9A5947D2A852DD3F1D906052C435C76AAE52A1946D7E5C3457ED68EADE77807\",\n\t\t\"txblknum\":27833000,\n\t\t\"txindex\":0,\n\t\t\"cur12\":\"0000000000000000000000000000000000000000\",\n\t\t\"spender1\":\"435D04C9292EA5FA096ED0BE395E2C4E1144631E\",\n\t\t\"blknum1\":26870000,\n\t\t\"txindex1\":0,\n\t\t\"oindex1\":0,\n\t\t\"spender2\":\"435D04C9292EA5FA096ED0BE395E2C4E1144631E\",\n\t\t\"blknum2\":27793000,\n\t\t\"txindex2\":0,\n\t\t\"oindex2\":1,\n\t\t\"newowner1\":\"EA4BA38CF229F7BD8A5B99DAEA3914CF16899EED\",\n\t\t\"amount1\":56000000000000000000,\n\t\t\"newowner2\":\"0000000000000000000000000000000000000000\",\n\t\t\"amount2\":0,\n\t\t\"sig1\":\"EB40805A4892DF4FFE5CC031FE9E7445A81DA2E106B2B5286DD6BEA45CE2F0A14D3530D01F051B1A23A74651B6F319A1999948BB2B7F71680F0B47EF20C233FC1B\",\n\t\t\"sig2\":\"EB40805A4892DF4FFE5CC031FE9E7445A81DA2E106B2B5286DD6BEA45CE2F0A14D3530D01F051B1A23A74651B6F319A1999948BB2B7F71680F0B47EF20C233FC1B\"\n\t}\n}\n"}],"_postman_id":"38cb9efe-2d98-49b3-9f26-9e3a58417ca5"}],"id":"beeadac4-99c5-4d4e-af6a-30786316467a","_postman_id":"beeadac4-99c5-4d4e-af6a-30786316467a","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}}},{"name":"Create Transaction","id":"7c7a833f-3374-4a2e-956a-723a97f2120d","request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{access_token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"chain\": \"bdb\",\n\t\"scope\": \"root\",\n\t\"value\": {\n\t\t\"operation\": \"TRANSFER\",\n\t\t\"version\": \"2.0\",\n\t\t\"metadata\": {\n\t\t\t\"version\": \"7\",\n\t\t\t\"created_at\": \"2018-10-10T14:16:21.667Z\",\n\t\t\t\"values\": {\n\t\t\t\t\"ref\": \"d9c2f9bd48a1e60539ff6fe6e25c501c103f5d93a90a3f5221b2734a_avatar_7\",\n\t\t\t\t\"name\": \"Stan\",\n\t\t\t\t\"url\": \"http://stan.to/\",\n\t\t\t\t\"image\": \"https://s3.eu-central-1.amazonaws.com/alpha-arena-avatars/6bc8fe7f049cc8b9c9e3f4e9d2a2e816e8887cfe2f8ea2de09536211dac32702f2fe84f043f8a8d355934b1d780097e6.gif\"\n\t\t\t}\n\t\t},\n\t\t\"inputs\": [\n\t\t\t{\n\t\t\t\t\"fulfills\": {\n\t\t\t\t\t\"transaction_id\": \"e456671ffd7e7093e758100189cf51742b0c680b9bd71c6f73a8a67f50279e73\",\n\t\t\t\t\t\"output_index\": 0\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t\"outputs\": [\n\t\t\t{\n\t\t\t\t\"public_keys\": [\n\t\t\t\t\t\"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t],\n\t\t\t\t\"amount\": \"1\"\n\t\t\t}\n\t\t]\n\t}\n}\n"},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/transactions","description":"<p>Use <strong>Create Transaction</strong> to submit custom raw transactions to underlying blockchain.</p>\n<p>If caller of this endpoint is authorized as owner of submitted transaction, and the transaction is signed, it is committed directly to underlying blockchain and status <code>201 Created</code> is returned together with header <code>X-Ares-Created-Id</code> holding the id of created transaction.</p>\n<p>Otherwise a <em>pending</em> transaction is created and status <code>202 Accepted</code> is returned together with headers <code>X-Ares-Created-Id</code> holding the id of the pending transaction as well as <code>Location</code> holding an authorization url. To actually sign &amp; commit the pending transaction to the blockchain, it must be <a href=\"#421c0a9b-9e91-498b-a37b-f853d41a37b8\">resolved</a> using provided id and <a href=\"#08de676f-71f1-4690-97e3-adb8fadc39c0\">signed &amp; submitted</a> to the transactions endpoint.</p>\n<p>If your application does not have the necessary credentials, i.e. private key, to sign the transaction, for example if your application is creating the transaction on behalf of another user, the provided authorization url must be opened in a web browser and presented to the user instead.</p>\n<p>To receive notification on whether the user authorized the transaction, the parameter <code>redirect_uri</code> can be appended to the authorization url. The user will be redirected there upon authorization / dismissal of requested transaction.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}},"urlObject":{"protocol":"https","path":["alpha","transactions"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"29a6fc53-d09b-4a6e-9a1d-d99286ea4376","name":"Create Transaction - Accepted","originalRequest":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{access_token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"chain\": \"bdb\",\n\t\"scope\": \"root\",\n\t\"value\": {\n\t\t\"operation\": \"TRANSFER\",\n\t\t\"version\": \"2.0\",\n\t\t\"metadata\": {\n\t\t\t\"version\": \"7\",\n\t\t\t\"created_at\": \"2018-10-10T14:16:21.667Z\",\n\t\t\t\"values\": {\n\t\t\t\t\"ref\": \"d9c2f9bd48a1e60539ff6fe6e25c501c103f5d93a90a3f5221b2734a_avatar_7\",\n\t\t\t\t\"name\": \"Stan\",\n\t\t\t\t\"url\": \"http://stan.to/\",\n\t\t\t\t\"image\": \"https://s3.eu-central-1.amazonaws.com/alpha-arena-avatars/6bc8fe7f049cc8b9c9e3f4e9d2a2e816e8887cfe2f8ea2de09536211dac32702f2fe84f043f8a8d355934b1d780097e6.gif\"\n\t\t\t}\n\t\t},\n\t\t\"inputs\": [\n\t\t\t{\n\t\t\t\t\"fulfills\": {\n\t\t\t\t\t\"transaction_id\": \"e456671ffd7e7093e758100189cf51742b0c680b9bd71c6f73a8a67f50279e73\",\n\t\t\t\t\t\"output_index\": 0\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t\"outputs\": [\n\t\t\t{\n\t\t\t\t\"public_keys\": [\n\t\t\t\t\t\"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t],\n\t\t\t\t\"amount\": \"1\"\n\t\t\t}\n\t\t]\n\t}\n}\n"},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/transactions"},"status":"Accepted","code":202,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"HTTP/1.1 202 Accepted\nX-Ares-Created-Id: e8b03420-cdfa-11e8-8e78-2de832d5ac92\nLocation: https://d3ob2g5ep10o1o.cloudfront.net/account/transactions/authorize?transaction_id=e8b03420-cdfa-11e8-8e78-2de832d5ac92\n"},{"id":"54bb8e6f-5e22-45ea-b65c-a12888d8c850","name":"Create Transaction - Created","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"chain\": \"bdb\",\n\t\"scope\": \"root\",\n\t\"value\": {\n\t\t\"id\": \"6029d211fc0a2867c9eeb3e70b95c7a63d6d84b986f61121ebb61574c6b65f5a\",\n\t\t\"asset\": {\n\t\t\t\"id\": \"8304bd6557284fe98124389f834ab9b7a70e5cf436b490f35505dc497abf880a\"\n\t\t},\n\t\t\"operation\": \"TRANSFER\",\n\t\t\"version\": \"2.0\",\n\t\t\"metadata\": {\n\t\t\t\"version\": \"7\",\n\t\t\t\"created_at\": \"2018-10-10T14:16:21.667Z\",\n\t\t\t\"values\": {\n\t\t\t\t\"ref\": \"d9c2f9bd48a1e60539ff6fe6e25c501c103f5d93a90a3f5221b2734a_avatar_7\",\n\t\t\t\t\"name\": \"Stan\",\n\t\t\t\t\"url\": \"http://stan.to/\",\n\t\t\t\t\"image\": \"https://s3.eu-central-1.amazonaws.com/alpha-arena-avatars/6bc8fe7f049cc8b9c9e3f4e9d2a2e816e8887cfe2f8ea2de09536211dac32702f2fe84f043f8a8d355934b1d780097e6.gif\"\n\t\t\t}\n\t\t},\n\t\t\"inputs\": [\n\t\t\t{\n\t\t\t\t\"fulfills\": {\n\t\t\t\t\t\"transaction_id\": \"e456671ffd7e7093e758100189cf51742b0c680b9bd71c6f73a8a67f50279e73\",\n\t\t\t\t\t\"output_index\": 0\n\t\t\t\t},\n\t\t\t\t\"owners_before\": [\n\t\t\t\t\t\"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t],\n\t\t\t\t\"fulfillment\": \"pGSAIAFa-Szbnr5RLwf4vc_-Lqrv4-mkuuFEyUi_J3zWk9A8gUB3n7t5Cf9Xls8EgA6mGDOWDlA_gIrU9JP7oBdvQOn20Bt4eH1zvmcDbH0nIhpegOZ17TPOEe6b1nmDH1cOqi8D\"\n\t\t\t}\n\t\t],\n\t\t\"outputs\": [\n\t\t\t{\n\t\t\t\t\"public_keys\": [\n\t\t\t\t\t\"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t],\n\t\t\t\t\"condition\": {\n\t\t\t\t\t\"uri\": \"ni:///sha-256;HpCANV2iJLSvCg0UKqiXcaAvhRPxJIp5dh_G7HLDxCY?fpt=ed25519-sha-256&cost=131072\",\n\t\t\t\t\t\"details\": {\n\t\t\t\t\t\t\"type\": \"ed25519-sha-256\",\n\t\t\t\t\t\t\"public_key\": \"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"amount\": \"1\"\n\t\t\t}\n\t\t]\n\t}\n}\n"},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/avatars"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[{"key":"X-Ares-Created-Id","value":"e8b03420-cdfa-11e8-8e78-2de832d5ac92","description":"","type":"text"},{"key":"Location","value":"https://d3ob2g5ep10o1o.cloudfront.net/account/transactions/authorize?transaction_id=e8b03420-cdfa-11e8-8e78-2de832d5ac92","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"HTTP/1.1 201 Created\nX-Ares-Created-Id: 6029d211fc0a2867c9eeb3e70b95c7a63d6d84b986f61121ebb61574c6b65f5a\n"}],"_postman_id":"7c7a833f-3374-4a2e-956a-723a97f2120d"},{"name":"Resolve Pending Transaction","id":"421c0a9b-9e91-498b-a37b-f853d41a37b8","request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"}],"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/transactions/pending/{{id}}","description":"<p><strong>Resolve Pending Transaction</strong> for signing.</p>\n<p><a href=\"#7c7a833f-3374-4a2e-956a-723a97f2120d\">Create Transaction</a> as well as other mutating endpoints generally return an id for a pending transaction, unless a signed transaction by an authorized owner has been submitted in the first place.</p>\n<p>Corresponding pending transaction can be resolved by invoking this endpoint with previously obtained id as path parameter. The returned transaction can be signed using the ares client SDK, and committed to underlying blockchain by submitting it to the <a href=\"#08de676f-71f1-4690-97e3-adb8fadc39c0\">Sign Pending Transaction</a> endpoint. Please refer to the ares client SDK documentation for details on how to sign transactions.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}},"urlObject":{"protocol":"https","path":["alpha","transactions","pending","{{id}}"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"483a0694-0a9b-4c99-937d-07f885d12d7c","name":"Resolve Pending Transaction - Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"}],"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/transactions/pending/e8b03420-cdfa-11e8-8e78-2de832d5ac92"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n\t\"chain\": \"bdb\",\n\t\"scope\": \"root\",\n\t\"value\": {\n\t\t\"operation\": \"TRANSFER\",\n\t\t\"version\": \"2.0\",\n\t\t\"metadata\": {\n\t\t\t\"version\": \"7\",\n\t\t\t\"created_at\": \"2018-10-10T14:16:21.667Z\",\n\t\t\t\"values\": {\n\t\t\t\t\"ref\": \"d9c2f9bd48a1e60539ff6fe6e25c501c103f5d93a90a3f5221b2734a_avatar_7\",\n\t\t\t\t\"name\": \"Stan\",\n\t\t\t\t\"url\": \"http://stan.to/\",\n\t\t\t\t\"image\": \"https://s3.eu-central-1.amazonaws.com/alpha-arena-avatars/6bc8fe7f049cc8b9c9e3f4e9d2a2e816e8887cfe2f8ea2de09536211dac32702f2fe84f043f8a8d355934b1d780097e6.gif\"\n\t\t\t}\n\t\t},\n\t\t\"inputs\": [\n\t\t\t{\n\t\t\t\t\"fulfills\": {\n\t\t\t\t\t\"transaction_id\": \"e456671ffd7e7093e758100189cf51742b0c680b9bd71c6f73a8a67f50279e73\",\n\t\t\t\t\t\"output_index\": 0\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t\"outputs\": [\n\t\t\t{\n\t\t\t\t\"public_keys\": [\n\t\t\t\t\t\"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t],\n\t\t\t\t\"amount\": \"1\"\n\t\t\t}\n\t\t]\n\t}\n}\n"}],"_postman_id":"421c0a9b-9e91-498b-a37b-f853d41a37b8"},{"name":"Sign Pending Transaction","id":"08de676f-71f1-4690-97e3-adb8fadc39c0","request":{"method":"PUT","header":[{"key":"Authorization","type":"text","value":"Bearer {{access_token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"chain\": \"bdb\",\n\t\"scope\": \"root\",\n\t\"value\": {\n\t\t\"id\": \"6029d211fc0a2867c9eeb3e70b95c7a63d6d84b986f61121ebb61574c6b65f5a\",\n\t\t\"asset\": {\n\t\t\t\"id\": \"8304bd6557284fe98124389f834ab9b7a70e5cf436b490f35505dc497abf880a\"\n\t\t},\n\t\t\"operation\": \"TRANSFER\",\n\t\t\"version\": \"2.0\",\n\t\t\"metadata\": {\n\t\t\t\"version\": \"7\",\n\t\t\t\"created_at\": \"2018-10-10T14:16:21.667Z\",\n\t\t\t\"values\": {\n\t\t\t\t\"ref\": \"d9c2f9bd48a1e60539ff6fe6e25c501c103f5d93a90a3f5221b2734a_avatar_7\",\n\t\t\t\t\"name\": \"Stan\",\n\t\t\t\t\"url\": \"http://stan.to/\",\n\t\t\t\t\"image\": \"https://s3.eu-central-1.amazonaws.com/alpha-arena-avatars/6bc8fe7f049cc8b9c9e3f4e9d2a2e816e8887cfe2f8ea2de09536211dac32702f2fe84f043f8a8d355934b1d780097e6.gif\"\n\t\t\t}\n\t\t},\n\t\t\"inputs\": [\n\t\t\t{\n\t\t\t\t\"fulfills\": {\n\t\t\t\t\t\"transaction_id\": \"e456671ffd7e7093e758100189cf51742b0c680b9bd71c6f73a8a67f50279e73\",\n\t\t\t\t\t\"output_index\": 0\n\t\t\t\t},\n\t\t\t\t\"owners_before\": [\n\t\t\t\t\t\"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t],\n\t\t\t\t\"fulfillment\": \"pGSAIAFa-Szbnr5RLwf4vc_-Lqrv4-mkuuFEyUi_J3zWk9A8gUB3n7t5Cf9Xls8EgA6mGDOWDlA_gIrU9JP7oBdvQOn20Bt4eH1zvmcDbH0nIhpegOZ17TPOEe6b1nmDH1cOqi8D\"\n\t\t\t}\n\t\t],\n\t\t\"outputs\": [\n\t\t\t{\n\t\t\t\t\"public_keys\": [\n\t\t\t\t\t\"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t],\n\t\t\t\t\"condition\": {\n\t\t\t\t\t\"uri\": \"ni:///sha-256;HpCANV2iJLSvCg0UKqiXcaAvhRPxJIp5dh_G7HLDxCY?fpt=ed25519-sha-256&cost=131072\",\n\t\t\t\t\t\"details\": {\n\t\t\t\t\t\t\"type\": \"ed25519-sha-256\",\n\t\t\t\t\t\t\"public_key\": \"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"amount\": \"1\"\n\t\t\t}\n\t\t]\n\t}\n}\n"},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/transactions/pending/{{id}}","description":"<p>Use <strong>Sign Pending Transaction</strong> to commit a signed transaction to underlying blockchain.</p>\n<blockquote>\n<p>Make sure to <a href=\"https://d3ob2g5ep10o1o.cloudfront.net/auth/signin\">disable MFA</a> for the ares user account associated to your application's <code>client_id</code> if you want to commit transactions unsupervised.\nAn alternative MFA method that can be integrated into automated / machine to machine [m2m] workflows will be added soon.</p>\n</blockquote>\n<p>On success status <code>201 Created</code> is returned along with the header <code>X-Ares-Created-Id</code> holding the id of committed transaction on underlying blockchain. If MFA is enabled and further authorization is required, status <code>202 Accepted</code> is returned. That is probably not what you want when you are committing transactions via the API, so <a href=\"https://d3ob2g5ep10o1o.cloudfront.net/auth/signin\">make sure MFA is disabled</a> for the user account associated to your application's <code>client_id</code>.</p>\n<p>However if your application submitted a transaction on behalf of another user, you should not sign and submit it via the API, but instead redirect the user in a web browser to the authorization url that has been provided to you when you invoked <a href=\"#7c7a833f-3374-4a2e-956a-723a97f2120d\">Create Transaction</a> or any other mutating endpoint.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}},"urlObject":{"protocol":"https","path":["alpha","transactions","pending","{{id}}"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"1a1b3dcf-7f93-4189-b8fb-77901b20a46f","name":"Sign Transaction - Created","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"chain\": \"bdb\",\n\t\"scope\": \"root\",\n\t\"value\": {\n\t\t\"id\": \"6029d211fc0a2867c9eeb3e70b95c7a63d6d84b986f61121ebb61574c6b65f5a\",\n\t\t\"asset\": {\n\t\t\t\"id\": \"8304bd6557284fe98124389f834ab9b7a70e5cf436b490f35505dc497abf880a\"\n\t\t},\n\t\t\"operation\": \"TRANSFER\",\n\t\t\"version\": \"2.0\",\n\t\t\"metadata\": {\n\t\t\t\"version\": \"7\",\n\t\t\t\"created_at\": \"2018-10-10T14:16:21.667Z\",\n\t\t\t\"values\": {\n\t\t\t\t\"ref\": \"d9c2f9bd48a1e60539ff6fe6e25c501c103f5d93a90a3f5221b2734a_avatar_7\",\n\t\t\t\t\"name\": \"Stan\",\n\t\t\t\t\"url\": \"http://stan.to/\",\n\t\t\t\t\"image\": \"https://s3.eu-central-1.amazonaws.com/alpha-arena-avatars/6bc8fe7f049cc8b9c9e3f4e9d2a2e816e8887cfe2f8ea2de09536211dac32702f2fe84f043f8a8d355934b1d780097e6.gif\"\n\t\t\t}\n\t\t},\n\t\t\"inputs\": [\n\t\t\t{\n\t\t\t\t\"fulfills\": {\n\t\t\t\t\t\"transaction_id\": \"e456671ffd7e7093e758100189cf51742b0c680b9bd71c6f73a8a67f50279e73\",\n\t\t\t\t\t\"output_index\": 0\n\t\t\t\t},\n\t\t\t\t\"owners_before\": [\n\t\t\t\t\t\"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t],\n\t\t\t\t\"fulfillment\": \"pGSAIAFa-Szbnr5RLwf4vc_-Lqrv4-mkuuFEyUi_J3zWk9A8gUB3n7t5Cf9Xls8EgA6mGDOWDlA_gIrU9JP7oBdvQOn20Bt4eH1zvmcDbH0nIhpegOZ17TPOEe6b1nmDH1cOqi8D\"\n\t\t\t}\n\t\t],\n\t\t\"outputs\": [\n\t\t\t{\n\t\t\t\t\"public_keys\": [\n\t\t\t\t\t\"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t],\n\t\t\t\t\"condition\": {\n\t\t\t\t\t\"uri\": \"ni:///sha-256;HpCANV2iJLSvCg0UKqiXcaAvhRPxJIp5dh_G7HLDxCY?fpt=ed25519-sha-256&cost=131072\",\n\t\t\t\t\t\"details\": {\n\t\t\t\t\t\t\"type\": \"ed25519-sha-256\",\n\t\t\t\t\t\t\"public_key\": \"6HsAoGSkTFyJeQqVyd2Es9RNNyzpTZ1t54j9KRFWsUo\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t\"amount\": \"1\"\n\t\t\t}\n\t\t]\n\t}\n}\n"},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/transactions/pending/e8b03420-cdfa-11e8-8e78-2de832d5ac92"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[{"key":"X-Ares-Created-Id","value":"e8b03420-cdfa-11e8-8e78-2de832d5ac92","description":"","type":"text"},{"key":"Location","value":"https://d3ob2g5ep10o1o.cloudfront.net/account/transactions/authorize?transaction_id=e8b03420-cdfa-11e8-8e78-2de832d5ac92","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"HTTP/1.1 201 Created\nX-Ares-Created-Id: 6029d211fc0a2867c9eeb3e70b95c7a63d6d84b986f61121ebb61574c6b65f5a\n"}],"_postman_id":"08de676f-71f1-4690-97e3-adb8fadc39c0"}],"id":"93ea36b8-8dc9-4c27-ba12-e3e040be5cbc","_postman_id":"93ea36b8-8dc9-4c27-ba12-e3e040be5cbc","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}}},{"name":"Wallet","item":[{"name":"Ethereum Wallet","item":[{"name":"Resolve Balance - Root Chain","id":"ade1a546-51fb-4fe2-9083-3c623894589b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{access_token}}"}],"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/wallet/eth/balance/root","description":"<p>Resolve ethereum wallet balance, denominated in Wei.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}},"urlObject":{"protocol":"https","path":["alpha","wallet","eth","balance","root"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"30f5db68-c5e3-4699-b63a-e89c55a6cb7f","name":"Resolve Balance - Root Chain - Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{access_token}}"}],"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/wallet/eth/balance/root"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"\"570996313519998971720\""}],"_postman_id":"ade1a546-51fb-4fe2-9083-3c623894589b"},{"name":"Resolve Balance - Child Chain / Staked","id":"9b2c3296-42c0-4006-b294-8771428b36af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{access_token}}"}],"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/wallet/eth/balance/child","description":"<p>Resolve ethereum wallet balance, denominated in Wei.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}},"urlObject":{"protocol":"https","path":["alpha","wallet","eth","balance","child"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"b1bb36ad-00b8-4d30-be2c-cb2a7c459e2c","name":"Resolve Balance - Child Chain - Example","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"}],"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/wallet/eth/balance/child"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"\"500000000000000000000\""}],"_postman_id":"9b2c3296-42c0-4006-b294-8771428b36af"},{"name":"Create Transfer","id":"56d9474c-1be0-40a0-92ce-0f4ef4661431","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{access_token}}"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>Either <code>root</code> or <code>child</code></p>\n","key":"scope","type":"text","value":""},{"description":"<p>Recipient ethereum address</p>\n","key":"recipient","type":"text","value":""},{"description":"<p>Transfer amount, denominated in Wei</p>\n","key":"amount","type":"text","value":""},{"description":"<p>Message (optional)</p>\n","key":"message","type":"text","value":""}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/wallet/eth","description":"<p><strong>Create Transfer</strong> prepares an unsigned (<em>pending</em>) transaction to transfer given amount of ETH, denominated in Wei, to given recipient. The parameter <code>scope</code> specifies whether you want to transfer staked funds on the child chain, or unstaked on the ethereum root chain. On success, status <code>201 Created</code> is returned along with the headers <code>X-Ares-Created-Id</code> containing the id of the pending transaction as well as <code>Location</code> containing an authorization url for the pending transaction.</p>\n<p>To actually sign &amp; commit the transaction to the blockchain, the pending transaction must be <a href=\"#421c0a9b-9e91-498b-a37b-f853d41a37b8\">resolved</a> using provided id and <a href=\"#08de676f-71f1-4690-97e3-adb8fadc39c0\">signed &amp; submitted</a> to the transactions endpoint.</p>\n<p>If your application does not have the necessary credentials, i.e. private key, to sign the transaction, for example if your application is creating the avatar on behalf of another user, the provided authorization url must be opened in a web browser and presented to the user instead.</p>\n<p>To receive notification on whether the user authorized the transaction, the parameter <code>redirect_uri</code> can be appended to the authorization url. The user will be redirected there upon authorization / dismissal of requested transaction.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}},"urlObject":{"protocol":"https","path":["alpha","wallet","eth"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"379929ad-1f71-45ab-96cf-b3febf8f5274","name":"Create Transfer - Example","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"scope","value":"root","type":"text"},{"key":"recipient","value":"0x435d04c9292ea5fa096ed0be395e2c4e1144631e","type":"text"},{"key":"amount","value":"25000000000000000000","type":"text"},{"key":"message","value":"Here you go!","type":"text"}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/wallet/eth"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[{"key":"X-Ares-Created-Id","value":"e8b03420-cdfa-11e8-8e78-2de832d5ac92","description":"","type":"text"},{"key":"Location","value":"https://d3ob2g5ep10o1o.cloudfront.net/account/transactions/authorize?transaction_id=e8b03420-cdfa-11e8-8e78-2de832d5ac92","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"HTTP/1.1 201 Created\nX-Ares-Created-Id: 5786c9d0-e409-11e8-8470-cfa6f5f510e7\nLocation: https://d3ob2g5ep10o1o.cloudfront.net/account/transactions/authorize?transaction_id=5786c9d0-e409-11e8-8470-cfa6f5f510e7\n"}],"_postman_id":"56d9474c-1be0-40a0-92ce-0f4ef4661431"},{"name":"Update Stake","id":"c081b8f6-6d8b-4c7c-95e1-586621df3933","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","type":"text","value":"Bearer {{access_token}}"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"","description":"<p>Un-/stake amount, denominated in Wei.</p>\n","type":"text"}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/wallet/eth","description":"<p><strong>Update Stake</strong> prepares an unsigned (<em>pending</em>) transaction to deposit funds of the ethereum root chain to the ares child chain, and make them available for use with ares arena. Pass a negative <code>amount</code> to withdraw funds from the ares child chain back to the ethereum root chain. On success, status <code>201 Created</code> is returned along with the headers <code>X-Ares-Created-Id</code> containing the id of the pending transaction as well as <code>Location</code> containing an authorization url for the pending transaction.</p>\n<p>To actually sign &amp; commit the transaction to the blockchain, the pending transaction must be <a href=\"#421c0a9b-9e91-498b-a37b-f853d41a37b8\">resolved</a> using provided id and <a href=\"#08de676f-71f1-4690-97e3-adb8fadc39c0\">signed &amp; submitted</a> to the transactions endpoint.</p>\n<p>If your application does not have the necessary credentials, i.e. private key, to sign the transaction, for example if your application is creating the avatar on behalf of another user, the provided authorization url must be opened in a web browser and presented to the user instead.</p>\n<p>To receive notification on whether the user authorized the transaction, the parameter <code>redirect_uri</code> can be appended to the authorization url. The user will be redirected there upon authorization / dismissal of requested transaction.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}},"urlObject":{"protocol":"https","path":["alpha","wallet","eth"],"host":["fad7177qfa","execute-api","eu-central-1","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"5a80d701-b4ed-49db-8fce-5d4cb44836df","name":"Update Stake - Example","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"25000000000000000000","type":"text"}]},"url":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha/wallet/eth"},"status":"Created","code":201,"_postman_previewlanguage":"text","header":[{"key":"X-Ares-Created-Id","value":"e8b03420-cdfa-11e8-8e78-2de832d5ac92","description":"","type":"text"},{"key":"Location","value":"https://d3ob2g5ep10o1o.cloudfront.net/account/transactions/authorize?transaction_id=e8b03420-cdfa-11e8-8e78-2de832d5ac92","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"HTTP/1.1 201 Created\nX-Ares-Created-Id: e8b03420-cdfa-11e8-8e78-2de832d5ac92\nLocation: https://d3ob2g5ep10o1o.cloudfront.net/account/transactions/authorize?transaction_id=e8b03420-cdfa-11e8-8e78-2de832d5ac92\n"}],"_postman_id":"c081b8f6-6d8b-4c7c-95e1-586621df3933"}],"id":"124e2f7a-822c-4612-81b8-5c237d32cbaa","_postman_id":"124e2f7a-822c-4612-81b8-5c237d32cbaa","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}}}],"id":"1540ad42-9ed0-44be-9260-42feff0de655","_postman_id":"1540ad42-9ed0-44be-9260-42feff0de655","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","id":"1834fb4f-5096-4a06-aa24-5ee85cc6b9a5","name":"ares","type":"collection"}}}],"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"<access-token>"}],"advancedConfig":[{"key":"tokenType","value":"<token-type>"}]}},"event":[{"listen":"prerequest","script":{"id":"6b7ca80f-4f01-4daa-9c66-c460fb8beb19","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a4c2a0f4-4289-4083-bc53-a51ceaf0a65b","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseuri","value":"https://fad7177qfa.execute-api.eu-central-1.amazonaws.com/alpha"}]}