const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-staging.keystoneos.xyz/v1/demo/repos/{repo_id}/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-staging.keystoneos.xyz/v1/demo/repos/{repo_id}/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api-staging.keystoneos.xyz/v1/demo/repos/{repo_id}/events \
--header 'Authorization: Bearer <token>'{
"schemaVersion": "bitgo-repo-demo.v1",
"repoId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"view": "source",
"events": [
{
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequence": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"kind": "repo_created"
}
],
"nextCursor": "<string>",
"hasMore": true
}{
"detail": "<string>",
"code": "INVALID_TOKEN",
"docs_url": "https://docs.keystoneos.xyz/guides/error-codes#http-error"
}{
"detail": "<string>",
"code": "INVALID_TOKEN",
"docs_url": "https://docs.keystoneos.xyz/guides/error-codes#http-error"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
],
"code": "VALIDATION_ERROR",
"docs_url": "https://docs.keystoneos.xyz/guides/error-codes#validation-error"
}List demo repo events
Requires the settlements:read scope (as an M2M scope or a user permission).
The repo’s log after a cursor, in log order. The cursor is the last sequence the caller holds, as a canonical decimal string; a page that leaves events behind names the sequence to continue after in nextCursor. Events carry no payload.
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api-staging.keystoneos.xyz/v1/demo/repos/{repo_id}/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api-staging.keystoneos.xyz/v1/demo/repos/{repo_id}/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api-staging.keystoneos.xyz/v1/demo/repos/{repo_id}/events \
--header 'Authorization: Bearer <token>'{
"schemaVersion": "bitgo-repo-demo.v1",
"repoId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"view": "source",
"events": [
{
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sequence": "<string>",
"recordedAt": "2023-11-07T05:31:56Z",
"kind": "repo_created"
}
],
"nextCursor": "<string>",
"hasMore": true
}{
"detail": "<string>",
"code": "INVALID_TOKEN",
"docs_url": "https://docs.keystoneos.xyz/guides/error-codes#http-error"
}{
"detail": "<string>",
"code": "INVALID_TOKEN",
"docs_url": "https://docs.keystoneos.xyz/guides/error-codes#http-error"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
],
"code": "VALIDATION_ERROR",
"docs_url": "https://docs.keystoneos.xyz/guides/error-codes#validation-error"
}Authorizations
Auth0 JWT access token. See Authentication for details.
Path Parameters
Query Parameters
The view to answer. Omitted, the sole view granted to the caller's actor is answered; with several granted, one must be named. A view that is not granted is refused; naming one never grants it.
source, custodian_a, custodian_b The sequence to continue after; 0 reads from the start. At most 9223372036854775807, the last sequence the log can hold.
19^(0|[1-9][0-9]*)$Events per page.
1 <= x <= 200Response
Successful Response
A page of a repo's log in log order. The cursor is the sequence the next page starts after; whether a further page exists is stated by has_more alone.
"bitgo-repo-demo.v1"source, custodian_a, custodian_b 200Show child attributes
Show child attributes
20^(0|[1-9][0-9]*)$