caip-api
Version:
CAIP Blockchain API and JSON-RPC Config
113 lines • 2.95 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EIP155Schemas = {
eth_chainId: {
name: 'eth_chainId',
description: 'Get EIP-155 chain id',
params: {
type: 'array',
items: {},
},
result: {
type: 'string',
},
},
eth_accounts: {
name: 'eth_accounts',
description: 'Get account addresses',
params: {
type: 'array',
items: {},
},
result: {
type: 'array',
items: {
type: 'string',
},
},
},
eth_sign: {
name: 'eth_sign',
description: 'Sign arbitrary message',
params: {
type: 'array',
items: {
type: 'string',
},
},
result: {
type: 'string',
},
},
eth_signTypedData: {
name: 'eth_signTypedData',
description: 'Sign type data message',
params: {
type: 'array',
items: {
type: 'string',
},
},
result: {
type: 'string',
},
},
eth_signTransaction: {
name: 'eth_signTransaction',
description: 'Signs transaction',
params: {
type: 'array',
items: {
type: 'object',
properties: {
from: { type: 'string', required: true },
to: { type: 'string' },
gas: { type: 'string' },
gasPrice: { type: 'string' },
value: { type: 'string' },
data: { type: 'string' },
nonce: { type: 'string' },
},
},
},
result: {
type: 'string',
},
},
eth_sendTransaction: {
name: 'eth_sendTransaction',
description: 'Creates, signs, and sends a new transaction to the network',
params: {
type: 'array',
items: {
type: 'object',
properties: {
from: { type: 'string', required: true },
to: { type: 'string' },
gas: { type: 'string' },
gasPrice: { type: 'string' },
value: { type: 'string' },
data: { type: 'string' },
nonce: { type: 'string' },
},
},
},
result: {
type: 'string',
},
},
personal_sign: {
name: 'personal_sign',
description: 'Sign arbitrary message',
params: {
type: 'array',
items: {
type: 'string',
},
},
result: {
type: 'string',
},
},
};
//# sourceMappingURL=eip155.js.map