Skip to content

Commit

Permalink
Merge pull request #51 from AlisProject/develop
Browse files Browse the repository at this point in the history
Release 0.72.0
  • Loading branch information
hayago authored Apr 29, 2020
2 parents 5b0447d + 156e2d0 commit 51f47a8
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,44 @@ Resources:
}
- {
}
/eth/send_raw_transaction:
post:
description: 'トランザクション送信'
responses:
'200':
description: 'トランザクション送信果'
schema:
type: object
properties:
id:
type: 'integer'
jsonrpc:
type: 'string'
result:
type: 'string'
x-amazon-apigateway-integration:
responses:
default:
statusCode: '200'
uri: 'http://example.com:8545' # VPC Linkの場合は使用しないが定義する必要のある項目
httpMethod: POST
type: http
connectionId: !Ref PrivateChainVpcLink
connectionType: VPC_LINK
requestTemplates:
application/json:
!Sub
- |-
{
"jsonrpc": "2.0",
"method": "eth_sendRawTransaction",
"params": [
"$input.json('raw_transaction').replaceAll('\"','')"
],
"id": 1
}
- {
}
PrivateSubNet1:
Type: 'AWS::EC2::Subnet'
Properties:
Expand Down

0 comments on commit 51f47a8

Please sign in to comment.