Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 66 additions & 1 deletion api/public_api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,32 @@
"tags": ["Private Keys"]
}
},
"/public/v1/query/get_send_transaction_status": {
"post": {
"summary": "Get send transaction status",
"description": "Get the status of a send transaction request.",
"operationId": "GetSendTransactionStatus",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/GetSendTransactionStatusResponse"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/GetSendTransactionStatusRequest"
}
}
],
"tags": ["Send Transactions"]
}
},
"/public/v1/query/get_smart_contract_interface": {
"post": {
"summary": "Get smart contract interface",
Expand Down Expand Up @@ -6437,7 +6463,14 @@
"required": ["type", "timestampMs", "organizationId", "parameters"]
},
"EthSendTransactionResult": {
"type": "object"
"type": "object",
"properties": {
"sendTransactionStatusId": {
"type": "string",
"description": "The send_transaction_status ID associated with the transaction submission for sponsored transactions"
}
},
"required": ["sendTransactionStatusId"]
},
"ExportPrivateKeyIntent": {
"type": "object",
Expand Down Expand Up @@ -7192,6 +7225,38 @@
},
"required": ["privateKeys"]
},
"GetSendTransactionStatusRequest": {
"type": "object",
"properties": {
"organizationId": {
"type": "string",
"description": "Unique identifier for a given organization."
},
"sendTransactionStatusId": {
"type": "string",
"description": "The unique identifier of a send transaction request."
}
},
"required": ["organizationId", "sendTransactionStatusId"]
},
"GetSendTransactionStatusResponse": {
"type": "object",
"properties": {
"txStatus": {
"type": "string",
"description": "The current status of the send transaction."
},
"txHash": {
"type": "string",
"description": "The blockchain transaction hash, if available."
},
"txError": {
"type": "string",
"description": "The error encountered when broadcasting or confirming the transaction, if any."
}
},
"required": ["txStatus"]
},
"GetSmartContractInterfaceRequest": {
"type": "object",
"properties": {
Expand Down
6 changes: 4 additions & 2 deletions examples/email_otp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ func initClient() {

func sendOTP() (string, error) {
otpType := "OTP_TYPE_EMAIL"
appName := "My App"

params := user_verification.NewInitOtpParams().WithBody(&models.InitOtpRequest{
TimestampMs: util.RequestTimestamp(),
OrganizationID: util.StringPointer(parentOrgID),
Type: (*string)(models.ActivityTypeInitOtp.Pointer()),
Parameters: &models.InitOtpIntent{
Type: (*string)(models.ActivityTypeInitOtpV2.Pointer()),
Parameters: &models.InitOtpIntentV2{
AppName: &appName,
Contact: util.StringPointer(emailAddress),
OtpType: &otpType,
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading