Skip to content

Commit 3f65e93

Browse files
committed
updating with actual json output
1 parent 377a57a commit 3f65e93

File tree

1 file changed

+72
-76
lines changed

1 file changed

+72
-76
lines changed

v2/specification.md

+72-76
Original file line numberDiff line numberDiff line change
@@ -99,88 +99,84 @@ interface EthInstruction {
9999
#### Response Body Example
100100
```JSON
101101
{
102-
time: new Date("2018-01-12T22:04:54.364Z"),
103-
expires: new Date("2018-01-12T22:19:54.364Z"),
104-
memo:
105-
"Payment request for BitPay invoice TmyrxFvAi4DjFNy3c7EjVm for merchant Robs Fake Business",
106-
paymentUrl: "https://localhost:5555/i/TmyrxFvAi4DjFNy3c7EjVm",
107-
paymentId: "TmyrxFvAi4DjFNy3c7EjVm",
108-
paymentOptions: [
109-
{
110-
network: "mainnet",
111-
chain: "BTC",
112-
instructions: [
113-
{
114-
requiredFeePerByte: 1000,
115-
outputs: [
116-
{
117-
amount: 39300,
118-
address: "mthVG9kuRTJQtXieJVDSrrvWyM7QDZ3rcV"
119-
}
120-
]
121-
}
122-
]
123-
},
124-
{
125-
chain: "BCH",
126-
network: "mainnet",
127-
instructions: [
102+
"time": "2018-01-12T22:04:54.364Z",
103+
"expires": "2018-01-12T22:19:54.364Z",
104+
"memo": "Payment request for BitPay invoice TmyrxFvAi4DjFNy3c7EjVm for merchant Robs Fake Business",
105+
"paymentUrl": "https://localhost:5555/i/TmyrxFvAi4DjFNy3c7EjVm",
106+
"paymentId": "TmyrxFvAi4DjFNy3c7EjVm",
107+
"paymentOptions": [
128108
{
129-
requiredFeePerByte: 1000,
130-
outputs: [
131-
{
132-
amount: 39300,
133-
address: "mthVG9kuRTJQtXieJVDSrrvWyM7QDZ3rcV"
134-
}
135-
]
136-
}
137-
]
138-
},
139-
{
140-
chain: "ETH",
141-
network: "mainnet",
142-
instructions: [
109+
"network": "mainnet",
110+
"chain": "BTC",
111+
"instructions": [
112+
{
113+
"requiredFeePerByte": 1000,
114+
"outputs": [
115+
{
116+
"amount": 39300,
117+
"address": "mthVG9kuRTJQtXieJVDSrrvWyM7QDZ3rcV"
118+
}
119+
]
120+
}
121+
]
122+
},
143123
{
144-
gasPrice: "0x09184e72a000",
145-
gasLimit: "0x2710",
146-
to: "0xd8fD14fB0E0848Cb931c1E54a73486c4B968BE3D",
147-
value: "0x64",
148-
chainId: 1,
149-
data:
150-
"0x000000000000000000000000000000000000000000000000000000000000000000000000"
151-
}
152-
]
153-
},
154-
{
155-
chain: "ETH",
156-
network: "mainnet",
157-
tokenInformation: {
158-
currency: "GUSD",
159-
type: "ERC20",
160-
address: "0x2E05e01f8A9dF371FCdD8342D3834a57267a0cD1"
161-
},
162-
instructions: [
124+
"chain": "BCH",
125+
"network": "mainnet",
126+
"instructions": [
127+
{
128+
"requiredFeePerByte": 1000,
129+
"outputs": [
130+
{
131+
"amount": 39300,
132+
"address": "mthVG9kuRTJQtXieJVDSrrvWyM7QDZ3rcV"
133+
}
134+
]
135+
}
136+
]
137+
},
163138
{
164-
gasPrice: "0x09184e72a000",
165-
gasLimit: "0x5958",
166-
to: "0x2E05e01f8A9dF371FCdD8342D3834a57267a0cD1",
167-
value: "0x00",
168-
chainId: 1,
169-
data:
170-
"0x095ea7b3000000000000000000000000d8fd14fb0e0848cb931c1e54a73486c4b968be3d0000000000000000000000000000000000000000000000000000000000000064"
139+
"chain": "ETH",
140+
"network": "mainnet",
141+
"instructions": [
142+
{
143+
"gasPrice": "0x09184e72a000",
144+
"gasLimit": "0x2710",
145+
"to": "0xd8fD14fB0E0848Cb931c1E54a73486c4B968BE3D",
146+
"value": "0x64",
147+
"chainId": 1,
148+
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000"
149+
}
150+
]
171151
},
172152
{
173-
gasPrice: "0x09184e72a000",
174-
gasLimit: "0x5958",
175-
to: "0x2E05e01f8A9dF371FCdD8342D3834a57267a0cD1",
176-
value: "0x00",
177-
chainId: 1,
178-
data:
179-
"0xa9059cbb0000000000000000000000002e05e01f8a9df371fcdd8342d3834a57267a0cd10000000000000000000000000000000000000000000000000000000000000064"
153+
"chain": "ETH",
154+
"network": "mainnet",
155+
"tokenInformation": {
156+
"currency": "GUSD",
157+
"type": "ERC20",
158+
"address": "0x2E05e01f8A9dF371FCdD8342D3834a57267a0cD1"
159+
},
160+
"instructions": [
161+
{
162+
"gasPrice": "0x09184e72a000",
163+
"gasLimit": "0x5958",
164+
"to": "0x2E05e01f8A9dF371FCdD8342D3834a57267a0cD1",
165+
"value": "0x00",
166+
"chainId": 1,
167+
"data": "0x095ea7b3000000000000000000000000d8fd14fb0e0848cb931c1e54a73486c4b968be3d0000000000000000000000000000000000000000000000000000000000000064"
168+
},
169+
{
170+
"gasPrice": "0x09184e72a000",
171+
"gasLimit": "0x5958",
172+
"to": "0x2E05e01f8A9dF371FCdD8342D3834a57267a0cD1",
173+
"value": "0x00",
174+
"chainId": 1,
175+
"data": "0xa9059cbb0000000000000000000000002e05e01f8a9df371fcdd8342d3834a57267a0cd10000000000000000000000000000000000000000000000000000000000000064"
176+
}
177+
]
180178
}
181-
]
182-
}
183-
]
179+
]
184180
}
185181
```
186182

0 commit comments

Comments
 (0)