Skip to content

Commit

Permalink
Merge pull request #109 from coinbase/jingwei/add-publickey-back
Browse files Browse the repository at this point in the history
[metadata]add public key back
  • Loading branch information
jingweicb authored Sep 19, 2022
2 parents bbbd0d9 + 3bd3310 commit f9e2a02
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 7 additions & 1 deletion api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@
}
},
"ConstructionMetadataRequest": {
"description":"A ConstructionMetadataRequest is utilized to get information required to construct a transaction. The Options object used to specify which metadata to return is left purposely unstructured to allow flexibility for implementers. Options is not required in the case that there is network-wide metadata of interest.",
"description":"A ConstructionMetadataRequest is utilized to get information required to construct a transaction. The Options object used to specify which metadata to return is left purposely unstructured to allow flexibility for implementers. Options is not required in the case that there is network-wide metadata of interest. Optionally, the request can also include an array of PublicKeys associated with the AccountIdentifiers returned in ConstructionPreprocessResponse.",
"type":"object",
"required": [
"network_identifier"
Expand All @@ -1935,6 +1935,12 @@
"options": {
"description":"Some blockchains require different metadata for different types of transaction construction (ex: delegation versus a transfer). Instead of requiring a blockchain node to return all possible types of metadata for construction (which may require multiple node fetches), the client can populate an options object to limit the metadata returned to only the subset required.",
"type":"object"
},
"public_keys": {
"type":"array",
"items": {
"$ref":"#/components/schemas/PublicKey"
}
}
}
},
Expand Down
8 changes: 8 additions & 0 deletions api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,10 @@ components:
purposely unstructured to allow flexibility for implementers. Options
is not required in the case that there is network-wide metadata of
interest.
Optionally, the request can also include an array
of PublicKeys associated with the AccountIdentifiers
returned in ConstructionPreprocessResponse.
type: object
required:
- network_identifier
Expand All @@ -1136,6 +1140,10 @@ components:
the client can populate an options object to limit the metadata
returned to only the subset required.
type: object
public_keys:
type: array
items:
$ref: '#/components/schemas/PublicKey'
ConstructionMetadataResponse:
description: |
The ConstructionMetadataResponse returns network-specific metadata
Expand Down

0 comments on commit f9e2a02

Please sign in to comment.